mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
17 lines
303 B
PHP
17 lines
303 B
PHP
--TEST--
|
|
Bug #73029: Missing type check when unserializing SplArray
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$a = 'C:11:"ArrayObject":19:0x:i:0;r:2;;m:a:0:{}}';
|
|
$m = unserialize($a);
|
|
$x = $m[2];
|
|
} catch(UnexpectedValueException $e) {
|
|
print $e->getMessage() . "\n";
|
|
}
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
Error at offset 10 of 19 bytes
|
|
DONE
|