ClanKiller.com
http://forums.clankiller.com/

php :: programmatically catching script warnings
http://forums.clankiller.com/viewtopic.php?f=24&t=2453
Page 1 of 1

Author:  Satis [ Wed Jul 18, 2007 7:39 am ]
Post subject:  php :: programmatically catching script warnings

So...anyone know if it's possible to programmatically catch a warning from a php script so I can log it? Exceptions are easy... I can just wrap the code block in a try/catch block. But warnings don't actually interrupt the execution of the script so I'm not sure if they're catchable.

Thanks for any answers ahead of time. :)

Author:  Pig [ Wed Jul 18, 2007 5:06 pm ]
Post subject: 

set_error_handler can handle warnings, based off the error number.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/