Re: destroy the current object (PDO)

From: Date: Thu, 10 Apr 2008 12:17:40 +0000
Subject: Re: destroy the current object (PDO)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-36917@lists.php.net to get a copy of this message
On Wed, 2008-04-09 at 10:14 +0200, Olivier Bonvalet wrote: > public function __construct( $dsn, $user, $password ) > { > try { > parent::__construct( $dsn, $user, $password ); > } catch( PDOException $e ) { > echo 'there is an error... but continue the script', PHP_EOL; > } > } The correct thing is to either re-throw the PDOException or use your own exception and throw that. } catch( PDOException $e ) { echo 'there is an error... but continue the script', PHP_EOL; throw $e; } Everything else is broken on oyur side, no internals@ issue. johannes

« previous php.internals (#36917) next »