diff options
Diffstat (limited to 'ext/spl/tests/bug72888.phpt')
-rw-r--r-- | ext/spl/tests/bug72888.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/spl/tests/bug72888.phpt b/ext/spl/tests/bug72888.phpt new file mode 100644 index 0000000000..7d2fc6db08 --- /dev/null +++ b/ext/spl/tests/bug72888.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #72888 (Segfault on clone on splFileObject) +--FILE-- +<?php +$x = new SplFileObject(__FILE__); + +try { + $y=clone $x; +} catch (Error $e) { + var_dump($e->getMessage()); +} +var_dump($y); +?> +--EXPECTF-- +string(49) "An object of class SplFileObject cannot be cloned" + +Notice: Undefined variable: y in %sbug72888.php on line %d +NULL |