PHP Test results

From: Date: Thu, 28 Mar 2002 17:30:32 +0000
Subject: PHP Test results
Groups: php.qa 
Request: Send a blank email to php-qa+get-4809@lists.php.net to get a copy of this message
array ( 'user_name' => 'Brad Jackson', 'email' => 'bjackson@mcleodusa.com', 'package' => '4.2.0-RC1', 'testcase' => '0', 'status' => 'Good', 'os' => 'Linux i386', 'sapi' => 'Apache 1.3.x DSO', 'automake' => '14', 'autoconf' => '252', 'libtool' => '140', 'bison' => '128', 'test' => 'We built 4.2.0-RC1 and tested code that unserializes an array that is serialized by PHP 3.0.14. ', 'problems' => 'It prints this message and fails to unserialize. \"Notice: unserialize() failed at offset 465 of 466 bytes in bug.php on line 3\" Here is the test code that works properly with PHP 4.0.4pl1, 4.0.6 and 4.1.2 but fails with 4.2.0-RC1 <?php error_reporting(E_ALL); print_r(unserialize(\"a:16:{i:0;a:3:{s:14:\\\"CustomerNumber\\\";s:4:\\\"2604\\\";s:13:\\\"InvoiceNumber\\\";s:7:\\\"2018060\\\";s:11:\\\"InvoiceDate\\\";s:10:\\\"2002-03-04\\\";}i:1;a:3:{s:14:\\\"CustomerNumber\\\";s:4:\\\"2604\\\";s:13:\\\"InvoiceNumber\\\";s:7:\\\"1574277\\\";s:11:\\\"InvoiceDate\\\";s:10:\\\"2002-01-31\\\";}i:2;a:3:{s:14:\\\"CustomerNumber\\\";s:4:\\\"2604\\\";s:13:\\\"InvoiceNumber\\\";s:7:\\\"1147699\\\";s:11:\\\"InvoiceDate\\\";s:10:\\\"2002-01-02\\\";}i:3;a:3:{s:14:\\\"CustomerNumber\\\";s:4:\\\"2604\\\";s:13:\\\"InvoiceNumber\\\";s:6:\\\"739506\\\";s:11:\\\"InvoiceDate\\\";s:10:\\\"2001-12-06\\\";}}\")); ?> ', 'bugids' => '', 'remarks' => 'We expect the array to unserialize properly, even data serialized by PHP 3.', )

« previous php.qa (#4809) next »