1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00
Files
archived-php-src/ext/spl/tests/bug72888.phpt
2019-10-02 10:34:08 +02:00

19 lines
336 B
PHP

--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(60) "Trying to clone an uncloneable object of class SplFileObject"
Warning: Undefined variable: y in %s on line %d
NULL