ID:               49692
 Updated by:       j...@php.net
 Reported By:      rickwalker2001 at gmail dot com
 Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: OS X 10.6
 PHP Version:      5.3.0
 New Comment:

It was quite likely fixed after 5.3.0 was released. Even if something
is reported for some version, it does not mean it will be fixed in the
next version..


Previous Comments:
------------------------------------------------------------------------

[2009-09-28 11:59:10] rickwalker2001 at gmail dot com

Sorry Jani - but having asked on php-qa about how a bug fixed in a
prior 
beta version is still present in a subsequent stable release they have

advised that I re-comment on this bug.

Can you please test this for yourself on the 5.3.0 build.  I would 
assume that if the bug was fixed on 5.3.0beta1 back in February that it

would have made up part of the 5.3.0 stable release.  Am I wrong on 
this?  Saying - 'Its fixed in SVN' does not help really as it's
unclear.

Basically - this bug is still on 5.3.0 (which presumably is built from

SVN).

------------------------------------------------------------------------

[2009-09-28 07:30:18] rickwalker2001 at gmail dot com

Cheers for getting back.  So, slightly confused as to how a bug fixed
in 
a beta version back in February is in SVN but has not made it into the

stable build yet?

*Off to familiarise myself with your SVN policy - thanks for the prompt

reply. :-)

------------------------------------------------------------------------

[2009-09-28 07:00:35] j...@php.net

Like I said in that other report: It's already fixed (in SVN :).

------------------------------------------------------------------------

[2009-09-27 22:43:47] rickwalker2001 at gmail dot com

Previous bug: http://bugs.php.net/bug.php?id=47332

------------------------------------------------------------------------

[2009-09-27 21:58:10] rickwalker2001 at gmail dot com

Description:
------------
When parsing ini files if the key contains a '/' char a syntax error is

thrown.

I have seen a bug closed as bogus from back in feb on one of the 5.3 
beta versions but I am seeing this with the latest stable 5.3 build
from 
macports.

PHP 5.3.0 (cli) (built: Sep 26 2009 00:08:23) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
    with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans


Reproduce code:
---------------
//my.ini file
[sitemap]
/home    = default:index
/info    = default:info

print_r(parse_ini_file('my.ini', true));

Expected result:
----------------
Array
(

    [sitemap] => Array
        (
            [/home] => default:index
            [/info] => default:info
        )

)

Actual result:
--------------
PHP Warning:  syntax error, unexpected '/' in my.ini on line 2
 in /Users/rick/test.php on line 5
PHP Stack trace:
PHP   1. {main}() /Users/rick/test.php:0
PHP   2. parse_ini_file() /Users/rick/test.php:5

Warning: syntax error, unexpected '/' in my.ini on line 2
 in /Users/rick/test.php on line 5

Call Stack:
    0.0004     622136   1. {main}() /Users/rick/test.php:0
    0.0004     622312   2. parse_ini_file() /Users/rick/test.php:5



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49692&edit=1

Reply via email to