. Implemented RFC: Session ID without hashing. (Yasuo)
https://wiki.php.net/rfc/session-id-without-hashing
+- SPL:
+ . Fixed bug #72888 (Segfault on clone on splFileObject). (Laruence)
+
- SQLite3:
. Updated to SQLite3 3.14.0. (cmb)
break;
case SPL_FS_FILE:
zend_throw_error(NULL, "An object of class %s cannot be cloned", ZSTR_VAL(old_object->ce->name));
- return NULL;
+ return new_object;
}
intern->file_class = source->file_class;
--- /dev/null
+--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