Re: warning message to hide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# ceo@xxxxxxxxx / 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux