|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-21 18:39 UTC] cataphract@php.net
-Status: Open
+Status: Bogus
[2010-12-21 18:39 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Description: ------------ When calling parent::__construct() in any(!) method of PDO successor class and exception is thrown in parent::__construct() successor object is destroyed regardless of the fact that exception is properly caught. Test script: --------------- class B extends PDO { public function __construct() { try { parent::__construct(''); } catch (Exception $e) { } var_dump($this); } } new B(''); Expected result: ---------------- object(B)#45 (0) { } Actual result: -------------- NULL