diff options
Diffstat (limited to 'Zend/tests/bug30162.phpt')
-rwxr-xr-x | Zend/tests/bug30162.phpt | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Zend/tests/bug30162.phpt b/Zend/tests/bug30162.phpt deleted file mode 100755 index ae11f8ff8b..0000000000 --- a/Zend/tests/bug30162.phpt +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -Bug #30162 (Catching exception in constructor couses lose of $this) ---FILE-- -<?php -class FIIFO { - - public function __construct() { - $this->x = "x"; - throw new Exception; - } - -} - -class hariCow extends FIIFO { - - public function __construct() { - try { - parent::__construct(); - } catch(Exception $e) { - } - $this->y = "y"; - try { - $this->z = new FIIFO; - } catch(Exception $e) { - } - } - - public function __toString() { - return "Rusticus in asino sedet."; - } - -} - -try { - $db = new FIIFO(); -} catch(Exception $e) { -} -var_dump($db); - -$db = new hariCow; - -var_dump($db); -?> ---EXPECTF-- -Notice: Undefined variable: db in %sbug30162.php on line 35 -NULL -object(hariCow)#1 (2) { - ["x"]=> - string(1) "x" - ["y"]=> - string(1) "y" -} |