Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36917 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96607 invoked from network); 10 Apr 2008 12:21:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Apr 2008 12:21:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:36195] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/7B-32943-2560EF74 for ; Thu, 10 Apr 2008 08:21:40 -0400 Received: (qmail 27886 invoked by uid 507); 10 Apr 2008 12:20:18 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.65.186) by mail4.netbeat.de with ESMTPA; 10 Apr 2008 12:20:18 -0000 To: Olivier Bonvalet Cc: internals@lists.php.net In-Reply-To: <47FC7B00.5040403@daevel.net> References: <47FC7B00.5040403@daevel.net> Content-Type: text/plain Date: Thu, 10 Apr 2008 14:17:40 +0200 Message-ID: <1207829860.5838.7.camel@goldfinger> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-3.fc8) Content-Transfer-Encoding: 7bit Subject: Re: destroy the current object (PDO) From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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