ID: 45974
User updated by: mete0 at gtn dot ru
Reported By: mete0 at gtn dot ru
Status: Open
Bug Type: *Directory/Filesystem functions
Operating System: OpenBSD current
PHP Version: 5.2.6
New Comment:
Small typo in reproduce code, file name must be `config.ini` not
`config.in`
Previous Comments:
------------------------------------------------------------------------
[2008-09-02 16:01:50] mete0 at gtn dot ru
Description:
------------
Function `parse_ini_file()` work strange with this char combination
`<!` as value for parameters, all chars after `<!` will be skipped.
Example:
file `config.ini`
[test]
one = "work fine"
two = ">!work fine too"
three = "<!does not work"
Reproduce code:
---------------
<?php
$cfg = parse_ini_file('config.in');
print_r($cfg);
?>
Expected result:
----------------
Array ( [one] => work fine [two] => >!work fine too [three] =>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45974&edit=1