1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/standard/tests/serialize/bug67072.phpt
T
2020-02-03 22:52:20 +01:00

13 lines
381 B
PHP

--TEST--
Bug #67072 Echoing unserialized "SplFileObject" crash
--FILE--
<?php
echo unserialize('O:13:"SplFileObject":1:{s:9:"*filename";s:15:"/home/flag/flag";}');
?>
===DONE==
--EXPECTF--
Warning: Erroneous data format for unserializing 'SplFileObject' in %sbug67072.php on line %d
Notice: unserialize(): Error at offset 24 of 64 bytes in %sbug67072.php on line %d
===DONE==