No I believe that is a feature the ability to turn off error reporting. You can do the same with mysql functions.
@mysql_ -----Original Message----- From: Gerard Samuel [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2003 7:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] baffled on error_reporting On Sunday 26 October 2003 06:45 pm, Gerard Samuel wrote: > On Sunday 26 October 2003 12:19 pm, Gerard Samuel wrote: > > I have a common included file with error_reporting set to 0 > > If I do a var_dump(error_reporting()) right after it it returns 0 > > In a file that includes this common file, if I > > var_dump(error_reporting()) there it return 2047, which I believe is > > E_ALL > > It that the correct behaviour of error_reporting??? > > Thanks > > Cant say why, but after doing a fresh pull from CVS, the problem seems to > have gone away. > Just another glitch in the Matrix... Actually, I found the real problem. The file that was including the common file was including it with a @ like -> @require('./common_file.php'); Once I remove the @, the error_reporting level, reported correctly, what was set in the included file, so it seems that while @ turns off error reporting, after that point, it goes back to php.ini's default of E_ALL (2047) Is it a bug, I have no idea at the moment. Im currently running php 4.3.3. Please advise. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php