Gabriel Schillaci wrote:

It is already set to ON, but still getting the same message, and other
messages such as:
    Notice: Undefined variable xxx

    This is another kind of error I started to receive since we moved from
Linux/php 4.2.x to Win/php 4.3.x

Until 4.2.x, this code was good for php parser:

    if ($a=='something')
        ...

    But now, php 4.3.x says that $a is undefined, and is forcing me to
declare/make use of a variable before I can mention it.

    $a='';
    if ($a=='something')

Please reply to the list, and not just me. That way, when someone else who has this problem will be able to search it in the archives.


Okay, this is the error reporting level. In the php.ini you can set 'error_reporting' to E_ALL & ~E_NOTICE to get rid of the warnings, or you can turn 'display_errors' to Off (restart of web server needed for the changes to take effect). Of course, it's still better to write your code to where you don't get these warnnings.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

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



Reply via email to