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

From: Date: Thu, 15 Sep 2016 08:04:39 +0000
Subject: com php-src: Fix test: ext/spl/tests/bug70068.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94539@lists.php.net to get a copy of this message
Commit: 812f9c8a632f74d475cbc5b82e09190c8d47f740 Author: Stanislav Malyshev <stas@php.net> Mon, 12 Sep 2016 20:12:41 -0700 Committer: Ferenc Kovacs <tyra3l@gmail.com> Thu, 15 Sep 2016 10:04:39 +0200 Parents: 7d011b6f59a3f5a59a9835f9ad40d9b40c266bec Branches: PHP-5.6.26 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=812f9c8a632f74d475cbc5b82e09190c8d47f740 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 (#94539) next »