ID: 31494
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
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