1--TEST-- 2Bug #72888 (Segfault on clone on splFileObject) 3--FILE-- 4<?php 5$x = new SplFileObject(__FILE__); 6 7try { 8 $y=clone $x; 9} catch (Error $e) { 10 var_dump($e->getMessage()); 11} 12var_dump($y); 13?> 14--EXPECTF-- 15string(49) "An object of class SplFileObject cannot be cloned" 16 17Notice: Undefined variable: y in %sbug72888.php on line %d 18NULL 19