diff options
Diffstat (limited to 'Zend/tests/bug30161.phpt')
-rwxr-xr-x | Zend/tests/bug30161.phpt | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/Zend/tests/bug30161.phpt b/Zend/tests/bug30161.phpt index e0c7060dc..22f8fb59e 100755 --- a/Zend/tests/bug30161.phpt +++ b/Zend/tests/bug30161.phpt @@ -1,34 +1,34 @@ ---TEST--
-Bug #30161 (Segmentation fault with exceptions)
---FILE--
-<?php
-class FIIFO {
-
- public function __construct() {
- throw new Exception;
- }
-
-}
-
-class hariCow extends FIIFO {
-
- public function __construct() {
- try {
- parent::__construct();
- } catch(Exception $e) {
- }
- }
-
- public function __toString() {
- return "ok\n";
- }
-
-}
-
-
-$db = new hariCow;
-
-echo $db;
-?>
---EXPECT--
-ok
+--TEST-- +Bug #30161 (Segmentation fault with exceptions) +--FILE-- +<?php +class FIIFO { + + public function __construct() { + throw new Exception; + } + +} + +class hariCow extends FIIFO { + + public function __construct() { + try { + parent::__construct(); + } catch(Exception $e) { + } + } + + public function __toString() { + return "ok\n"; + } + +} + + +$db = new hariCow; + +echo $db; +?> +--EXPECT-- +ok |