#45974 [NEW]: parse_ini_file strange work with some char combination

From: Date: Tue, 02 Sep 2008 16:01:50 +0000
Subject: #45974 [NEW]: parse_ini_file strange work with some char combination
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128616@lists.php.net to get a copy of this message
From: mete0 at gtn dot ru Operating system: OpenBSD current PHP version: 5.2.6 PHP Bug Type: *Directory/Filesystem functions Bug description: parse_ini_file strange work with some char combination 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 bug report at http://bugs.php.net/?id=45974&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45974&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45974&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45974&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45974&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45974&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45974&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45974&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45974&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45974&r=support Expected behavior: http://bugs.php.net/fix.php?id=45974&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45974&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45974&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45974&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45974&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45974&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45974&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45974&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45974&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45974&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45974&r=mysqlcfg

« previous php.bugs (#128616) next »