#31494 [Opn->Bgs]: BC break in unserialize

From: Date: Tue, 11 Jan 2005 20:26:02 +0000
Subject: #31494 [Opn->Bgs]: BC break in unserialize
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71875@lists.php.net to get a copy of this message
ID: 31494 Updated by: derick@php.net Reported By: nlopess@php.net -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: n/a PHP Version: 5CVS-2005-01-11 (dev) New Comment: Your code is bogus, as you're not stripping out the first line which has the #pear config comment on it. Previous Comments: ------------------------------------------------------------------------ [2005-01-11 18:56:50] nlopess@php.net Description: ------------ It seems there was another BC break in unserialize(). Reproduce code: --------------- my pear.ini file: #PEAR_Config 0.9 a:7:{s:15:"preferred_state";s:6:"stable beta";s:7:"bin_dir";s:11:"C:\php\PEAR";s:7:"php_dir";s:16:"C:\php\PEAR\pear";s:7:"doc_dir";s:21:"C:\php\PEAR\pear\docs"; s:8:"data_dir";s:21:"C:\php\PEAR\pear\data";s:8:"test_dir";s:22:"C:\php\PEAR\pear\tests";s:7:"php_bin";s:14:"C:\PHP\php.exe";} php -r "print_r(unserialize(file_get_contents('pear.ini')));" Actual result: -------------- Notice: unserialize() Error at offset 0 of 303 bytes in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31494&edit=1

« previous php.bugs (#71875) next »