mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
14 lines
368 B
PHP
14 lines
368 B
PHP
--TEST--
|
|
Bug #70068 (Dangling pointer in the unserialization of ArrayObject items)
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$a = unserialize('a:3:{i:0;C:11:"ArrayObject":20:{x:i:0;r:3;;m:a:0:{};}i:1;d:11;i:2;S:31:"AAAAAAAABBBBCCCC\01\00\00\00\04\00\00\00\00\00\00\00\00\00\00";}');
|
|
} catch(Exception $e) {
|
|
print $e->getMessage()."\n";
|
|
}
|
|
?>
|
|
OK
|
|
--EXPECT--
|
|
Error at offset 10 of 20 bytes
|
|
OK
|