com php-src: Fix test: ext/spl/tests/bug70068.phpt

From: Date: Tue, 13 Sep 2016 04:04:23 +0000
Subject: com php-src: Fix test: ext/spl/tests/bug70068.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94440@lists.php.net to get a copy of this message
Commit: 33d0ef0fefed7b8eb958aa4f1b4e2e7602953d30 Author: Stanislav Malyshev <stas@php.net> Mon, 12 Sep 2016 20:12:41 -0700 Parents: c4cca4c20e75359c9a13a1f9a36cb7b4e9601d29 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=33d0ef0fefed7b8eb958aa4f1b4e2e7602953d30 Log: Fix test Changed paths: M ext/spl/tests/bug70068.phpt Diff: diff --git a/ext/spl/tests/bug70068.phpt b/ext/spl/tests/bug70068.phpt index 92a38df..96b2fa8 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

« previous php.cvs (#94440) next »