每日错误日志
dongxie548
IT民工一枚
展开
-
deprecated preg_replace the e modifier is deprecated use preg_replace_callback instead in
symfony源码如下:protected function normalizeHeaderName($name) { return preg_replace('/\-(.)/e', "'-'.strtoupper('\\1')", strtr(ucfirst(strtolower($name)), '_', '-')); }修改为如下代码即可:protected fu原创 2015-07-16 14:09:30 · 1543 阅读 · 0 评论 -
[转]PHP ob_start() and ob_start('ob_gzhandler')
question:What is the difference between using ob_start() and ob_start('ob_gzhandler') ?How does it affect the page speed ?answer:This doesn't affect page speed in the sense you'd might t转载 2015-07-18 22:52:46 · 698 阅读 · 0 评论 -
phpize报错:Cannot find config.m4
关于phpize是干嘛用的,可以参看php官方文档:前几日想安装memcache的时候,需要为php安装memcache扩展,按照网上教程的步骤一步步执行时却报了如下错误:Cannot find config.m4.Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of原创 2015-08-01 22:49:23 · 39213 阅读 · 5 评论 -
failed to open stream: HTTP wrapper does not support writeable connections
今天在编程中遇到了如标题所示的报错信息,起因是我想把一些log信息写入到远程的一个txt文件中,代码如下:<?phpfile_put_contents("http://www.walk-sing.com", $testData);报这个错的原因是:You cannot open a file over HTTP and expect it to be written. Inste原创 2015-07-24 18:40:56 · 12704 阅读 · 2 评论 -
php报错:Warning: Phpinfo() Has Been Disabled For Security Reasons
今天想使用phpinfo函数查看一下服务器上php的相关信息的时候,报了如下错误:Warning: phpinfo() has been disabled for security reasons(出于安全考虑,禁用了phpinfo函数)这是第一次碰到这种错误,那么如何重新启用phpinfo函数呢?很简单;找到php的配置文件php.ini,将phpinfo函数从d原创 2015-07-25 21:27:49 · 4962 阅读 · 0 评论 -
php在fatal error下出现500
php在fatal error下的500code原创 2015-09-27 09:21:57 · 940 阅读 · 0 评论 -
解决 PHP Fatal error: Call-time pass-by-reference has been removed
PHP在升级到5.4版本的php可能会出现这种错误:如果这样使用函数(或者类)的话,会产生一个 PHP Fatal error:foo(&$var);实际上,这样用法在php5.3中就会有提示,只是之前的仅仅会提示Deprecated而已。// 正确写法function myFunc(&$arg) { do something... } myFunc($var);//转载 2015-09-16 11:14:16 · 2767 阅读 · 0 评论 -
symfony报错:Declaration of testAction::execute() must be compatible with sfComponent::execute($request
This is since 1.1 or greater version of symfony:class testAction extends sfAction{public function execute() {}}The above code will work fine for symfony 1.0, but for the vers原创 2015-10-04 11:38:39 · 751 阅读 · 0 评论 -
svn报错:could not read response body connection was closed by server
could not read response body connection was closed by server原创 2016-03-18 14:11:01 · 8125 阅读 · 2 评论