mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
19 lines
347 B
PHP
19 lines
347 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"
|
|
|
|
Notice: Undefined variable: y in %sbug72888.php on line %d
|
|
NULL
|