diff options
author | Stanislav Malyshev <stas@php.net> | 2016-09-12 20:12:41 -0700 |
---|---|---|
committer | Ferenc Kovacs <tyra3l@gmail.com> | 2016-09-15 10:04:39 +0200 |
commit | 812f9c8a632f74d475cbc5b82e09190c8d47f740 (patch) | |
tree | 7032e6c8efe28d63fb3aa618c934d579e9f5bc55 | |
parent | 7d011b6f59a3f5a59a9835f9ad40d9b40c266bec (diff) | |
download | php-git-812f9c8a632f74d475cbc5b82e09190c8d47f740.tar.gz |
Fix test
-rw-r--r-- | ext/spl/tests/bug70068.phpt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/spl/tests/bug70068.phpt b/ext/spl/tests/bug70068.phpt index 92a38dfbd6..96b2fa808f 100644 --- a/ext/spl/tests/bug70068.phpt +++ b/ext/spl/tests/bug70068.phpt @@ -2,8 +2,13 @@ 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
\ No newline at end of file |