有人能指出我可以强加给PHP的所有不同内存/时间/ [无论]限制的列表吗?简而言之,Apache仅在实例化具有特定参数的对象时给出-103 (ERR_CONNECTION_ABORTED)
错误。我首先在Rackspace的Cloud Sites平台上体验了这一点,然后在我的本地Windows机器上体验了这一点。我还没有看到这个问题出现在Rackspace的一个CentOS云服务器上。
其他细节:
ini_get('memory_limit')
返回264M。ini_get('max_execution_time')
返回60。基本上,我正在创建一个继承自Shop_CustomerGroup
的{{1}}类的新实例。当Db_ActiveRecord
的构造函数尝试创建Db_ActiveRecord
的新实例时,代码就会死亡。
Phpr_Validation
除非将<?php
class Db_ActiveRecord extends Db_SqlBase implements IteratorAggregate
{
// More code...
public function __construct($values = null, $options = array())
{
$this->modelState = self::stateCreating;
$this->model_options = $options;
$this->implement = Phpr_Util::splat($this->implement, true);
array_unshift($this->implement, 'Phpr_Events');
parent::__construct();
$this->initialize();
self::$object_counter++;
$this->objectId = 'ac_obj_'.self::$object_counter;
if (!$this->get_model_option('no_validation'))
{
if (!empty($options['test'])) {
// If I pass in `null`, 'foo' gets thrown. But if I pass in `$this`, the script appears to die.
$this->validation = new Phpr_Validation($this, 'test');
} else {
$this->validation = new Phpr_Validation($this);
}
$this->validation->focusPrefix = get_class($this)."_";
}
// Fill with data
if ($values !== null)
{
$this->fill($values);
$this->fill_relations($values);
}
$this->modelState = self::stateCreated;
}
// More code...
}
class Phpr_Validation
{
// More code...
public function __construct( $Owner = null, $FormId = 'FormElement' )
{
if ($FormId == 'test')
throw new Phpr_ApplicationException('foo');
$this->_owner = $Owner;
$this->_formId = $FormId;
$this->_fields = array();
$this->errorFields = array();
$this->valid = false;
$this->errorMessage = null;
$this->fieldErrors = array();
$this->fieldValues = array();
}
// More code...
}
传递给对象的构造函数,否则我确信我遇到了某种限制。我只是不知道那个限制可能是什么。
任何帮助表示赞赏!谢谢!
更新1:
请求网址
$this
请求标题
https://[DOMAIN_NAME]/checkout/new_account
Apache配置
POST https://[DOMAIN_NAME]/checkout/new_account HTTP/1.1
Pragma: no-cache
Origin: [DOMAIN_NAME]
PHPR-EVENT-HANDLER: ev{onHandleRequest}
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: */*
PHPR-POSTBACK: 1
Referer: https://[DOMAIN_NAME]/checkout/new_account
X-Requested-With: XMLHttpRequest
PHPR-REMOTE-EVENT: 1
更新2:
XAMPP \ apache的\日志\ error.log中
XAMPP \ apache的\日志[DOMAIN_NAME] -ssl-error.log中
更新3 Apache错误
<VirtualHost [IP_ADDRESS]:443>
ServerAdmin postmaster@[DOMAIN_NAME]
DocumentRoot "[PATH...]"
ServerName [DOMAIN_NAME]
SSLEngine on
SSLCertificateFile "conf/ssl.crt/[DOMAIN_NAME].crt"
SSLCertificateKeyFile "conf/ssl.key/[DOMAIN_NAME].key"
<Directory "[PATH...]">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog "logs/[DOMAIN_NAME]-ssl-error.log"
</VirtualHost>
答案 0 :(得分:0)
您应该确保您的文件是UTF-8而没有BOM ...