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

From: Date: Tue, 13 Sep 2016 03:15:18 +0000
Subject: com php-src: Fix test: ext/spl/tests/bug70068.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94455@lists.php.net to get a copy of this message
Commit: fab33740c5d6541653277ffc7443022730f444a7 Author: Stanislav Malyshev <stas@php.net> Mon, 12 Sep 2016 20:12:41 -0700 Parents: 8cceb012a7aabf3c36ab7c2724a436f976cdd165 Branches: PHP-7.0.11 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fab33740c5d6541653277ffc7443022730f444a7 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 (#94455) next »