Re: Problems with error handling.
| From: | Richard Lynch | Date: | Mon, 19 Feb 2001 22:03:41 +0000 |
| Subject: | Re: Problems with error handling. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40649@lists.php.net to get a copy of this message | ||
I think maybe ^ has different meaning in a php.ini file, from in a PHP
script...
Try (E_ALL & ~E_NOTICE)
http://www.php.net/manual/en/language.operators.bitwise.php
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Securez" <securez@teleline.es>
Newsgroups: php.general
Sent: Monday, February 19, 2001 6:02 AM
Subject: [PHP] Problems with error handling.
> When I change the error handler, i set the error_reporting to:
>
> error_reporting ( E_ALL ^ E_NOTICE);
>
> but when i call a is_file function that return false a E_NOTICE error is
> generated and my error handle trap it.
>
> I know that error_reporting works, becouse if i set it to 0, the parse
> errors aren't printed, but E_NOTICE stat failed appears when a is_file,
> is_dir function return false.
>
> Can anybody help me on this
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>