# [EMAIL PROTECTED] / 2006-10-19 16:05:58 -0500:
> try
> {
>     $objStatement->execute($arrParams);
>     $intID = $objStatement->fetchColumn();
>     $objStatement->closeCursor();
> }
> catch (PDOException $objEx)
> {
>     error_log(get_class($objEx));
>     // Actually handle the exception
> }
> 
> The query runs a stored procedure which sometimes results in an
> (expected) error condition which the catch block handles. It all works
> perfectly, with one exception: Inbetween the call to fetchColumn and the
> catch block being invoked, PHP dumps a stack trace to the error log
> complaining about the exception, and I can't for the life of me figure
> out why or how to stop it.

    A wild guess: do you have xdebug enabled?

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to