Re: CLI not obeying php.ini
| From: | Philip Thompson | Date: | Thu, 05 Feb 2009 22:20:46 +0000 |
| Subject: | Re: CLI not obeying php.ini | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287764@lists.php.net to get a copy of this message | ||
On Feb 5, 2009, at 4:10 PM, Chris wrote:
Philip Thompson wrote:I am including other classes. I did a grep on the whole directory and the only location that had error_reporting was the spot I wrote into my script to force it to E_ERROR. Odd, I know... Thanks, ~PhilipIn my php.ini, I have error_reporting = E_ALL & ~E_NOTICE When I run a script from the command line, I get a lot of notices.... even when I said I don't want them. Also, in my script, I specified error_reporting(E_ERROR) in attempts to explicitly tell it what I want. It doesn't work either. Why am I still getting notices?! BTW, I don't receive notices via a web browser, just CLI. I double-checked to see what INI file was loaded and it's the one I expected to see: [pthompson@pthompson scripts]$ php --ini Configuration File (php.ini) Path: /etcAre you including another script (eg pear mail or mbd2 or whatever)? Maybe it's setting something and overriding your attempt. A quick grep would be able to check that.Loaded Configuration File: /etc/php.iniThoughts on what's happening would be awesome! Thanks in advance.