Sybase - Error handlers

From: Date: Wed, 07 Aug 2002 12:58:21 +0000
Subject: Sybase - Error handlers
Groups: php.dev 
Request: Send a blank email to php-dev+get-86593@lists.php.net to get a copy of this message
Hello, I was wondering if anyone was interested if I added a error handler callback to the sybase extension. Currently the extension will only keep the last server message but print the rest of the warnings to the screen. I currently need to access all of the error messages (programatically). So what I want to do is add a callback handler along with keeping the last error message around. <? sybase_error_handler("my_handler"); function my_handler($error, $severity) { echo $error; } ?> Why this is a problem is when my queries fail it fails with a descriptive error like "forigen key constraint" then it gives another error "command has been aborted". I need to get all the error messages for that query. I know i could probally use ob and strip out html but thats not very pretty or nice. Any thoughts? - brad __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com

« previous php.dev (#86593) next »