summaryrefslogtreecommitdiff
path: root/ext/standard/tests/serialize/bug67072.phpt
blob: 3e7d33ba8a815ad2a05d7155f1ea82cab4cfee3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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--
Fatal error: Uncaught exception 'Exception' with message 'Unserialization of 'SplFileObject' is not allowed' in %sbug67072.php:2
Stack trace:
#0 %sbug67072.php(2): unserialize('O:13:"SplFileOb...')
#1 {main}
  thrown in %sbug67072.php on line 2