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:
[EMAIL PROTECTED] ~ $ php -r 'var_dump($foo);'
Notice: Undefined variable: foo in Command line code on line 1
Call Stack:
0.0002 1. {main}() Command line code:0
Dump $_SERVER
Dump $_GET
Dump $_POST
Dump $_COOKIE
Dump $_FILES
Dump $_ENV
Dump $_SESSION
Dump $_REQUEST
NULL
[EMAIL PROTECTED] ~ $ php -v
PHP 4.4.4-pl6-gentoo (cli) (built: Feb 9 2007 21:33:47)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Xdebug v2.0.0RC1, Copyright (c) 2002, 2003, 2004, 2005, 2006,
by Derick Rethans
[EMAIL PROTECTED] ~ $
Though, granted, I have some funky call-stack add-on happening here,
that all kicks in AFTER the E_NOTICE fires off.
Double check what php.ini is getting used by your CLI by doing this:
php -i | grep php.ini
If the php.ini file at that path doesn't have E_NOTICE on, you ain't
got it.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php