Re: Question about error_reporting()

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

 



Greg Donald wrote:

On Fri, 01 Oct 2004 10:36:28 -0400, Al <news@xxxxxxxxxxxxx> wrote:

If I place this at the top of my script file, the page just hangs.

error_reporting (E_ERROR | E_WARNING);

A virtual host on a Unix/Apache system.  Runs fine without the error_reporting().

The default system error reporting only shows E_ERRORS, so I wanted to see
warnings also.


Comment the entire script out starting below your call to
error_reporting(), then start uncommenting and testing it from the top
down until you find the issue.  It's doubtful error_reporting() is
causing the issue, it more likely it's uncovering an issue.  You might
try E_ALL, as it may help you discover the issue faster.

Posting the script and getting some more eyes on it also an option.


What's puzzling is that I can simply comment out the error_reporting line and the code runs fine.

Also, the Apache error log doesn't show any errors. with or without the error_reporting.

Is error_reporting() all that is necessary, or must I also have a error_log() statement?

The manual is not clear on this point.

Also, must I have a an existing error file for the errors to append to?

Again, thanks.

--
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