开发者

PHP CLI System_Daemon and error_reporting options ignored?

I'm ma开发者_开发问答king a daemon with System_Daemon for PHP. I can't get the default php error_reporting off.

I've tried

<?php
   error_reporting(0);
   set_ini('display_errors','off');
?>

but the warnings/notices are still showing when I execute the script from the console. Any ideas why this is happening or what I'm missing ? Probably it's some setting in System_Daemon ? :)


It is ini_set not set_ini

ini_set('display_errors',0);

Look at here http://php.net/manual/en/function.ini-set.php you have to set o to hide notice/warnings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜