From: marek dot nos at skype dot net Operating system: * PHP version: 5.3.0RC4 PHP Bug Type: Filesystem function related Bug description: parse_ini_file dollar sign as last character of value
Description: ------------ This is quite similar to #44609. Probably still not properly fixed. Reproduce code: --------------- <?php // Set ini file location $ini_location = dirname(__FILE__) . '/test.ini'; // Build ini data $ini_data = ' [cases] Case.a = avalue Case.b = "$dollar_sign$" Case.c = 10 '; // Save ini data to file file_put_contents($ini_location, $ini_data); var_dump(parse_ini_file('test.ini')); ?> Expected result: ---------------- array(3) { ["Case.a"]=> string(6) "avalue" ["Case.b"]=> string(13) "$dollar_sign$" ["Case.c"]=> string(2) "10" } Actual result: -------------- Warning: syntax error, unexpected $end, expecting TC_DOLLAR_CURLY or TC_QUOTED_STRING or '"' in test.ini on line 5 in C:\Users\Marek Nos\Documents\workspace\parse_ini.php on line 17 bool(false) -- Edit bug report at http://bugs.php.net/?id=48660&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48660&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48660&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48660&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48660&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48660&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48660&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48660&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48660&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48660&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48660&r=support Expected behavior: http://bugs.php.net/fix.php?id=48660&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48660&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48660&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48660&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48660&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48660&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48660&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48660&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48660&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48660&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48660&r=mysqlcfg