Re: warning message to hide
| From: | Roman Neuhauser | Date: | Thu, 19 Apr 2007 22:47:33 +0000 |
| Subject: | Re: warning message to hide | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253303@lists.php.net to get a copy of this message | ||
# ceo@l-i-e.com / 2007-04-19 17:28:42 -0500:
> On Thu, April 19, 2007 2:27 am, Roman Neuhauser wrote:
> > No, I've been using php-recommended.ini for the last several years.
> > It has that error_reporting = E_ALL by default, and that's one of the
> > reasons I've been using it.
>
> I don't think your PHP CLI is using the php.ini that you think it's
> using...
>
> Here's what happens without E_NOTICE:
>
> lynch@localhost ~ $ php -r 'var_dump($foo);'
>
> Notice: Undefined variable: foo in Command line code on line 1
roman@dagan ~ 1060:0 > php -r 'echo E_ALL, "\n";'
6143
roman@dagan ~ 1061:0 > php -r 'echo error_reporting(), "\n"; var_dump($foo);'
6143
PHP Notice: Undefined variable: foo in Command line code on line 1
NULL
roman@dagan ~ 1062:0 > php -r 'error_reporting(E_ALL & ~E_NOTICE); echo
error_reporting(), "\n"; var_dump($foo);'
6135
NULL
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991