It is currently Thu Mar 28, 2024 12:13 pm



Reply to topic  [ 2 posts ] 
php :: programmatically catching script warnings 
Author Message
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16646
Location: On a slope
Reply with quote
Post 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. :)

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Wed Jul 18, 2007 7:39 am
Profile WWW
Duke
User avatar

Joined: Mon Mar 31, 2003 8:59 am
Posts: 1358
Location: right behind you
Reply with quote
Post 
set_error_handler can handle warnings, based off the error number.


Wed Jul 18, 2007 5:06 pm
Profile YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.