summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-09-12 20:12:41 -0700
committerStanislav Malyshev <stas@php.net>2016-09-12 20:15:18 -0700
commitfab33740c5d6541653277ffc7443022730f444a7 (patch)
treea24393a60144b5b17badab8543a2b1f1cca85ffe
parent8cceb012a7aabf3c36ab7c2724a436f976cdd165 (diff)
downloadphp-git-fab33740c5d6541653277ffc7443022730f444a7.tar.gz
Fix test
-rw-r--r--ext/spl/tests/bug70068.phpt5
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