From: Operating system: Windows 7 (x64) PHP version: 5.3.6 Package: PHP options/info functions Bug Type: Bug Bug description:parse_ini_file() does not allow the word 'no' as part of ini values
Description: ------------ This is my first time filing a bug report here so if I've left out anything that may be needed, please let me know. The issue arises when calling parse_ini_file on a file that contains the word "no" as part of _any_ value. Additionally, this error seems to prevent the entire INI file from being loaded properly. In my actual code, database settings are defined first and then error messages second (and one of the error messages contain the word no). When this bug is encountered, the database connection fails due to the previous settings not being parsed. Lastly, this may be a re-post of: http://bugs.php.net/50340 Test script: --------------- example.php: <?php $ini_data = parse_ini_file('config.ini'); ?> config.ini: [ERRORS] ERR_GENERIC=Sorry, no results could be found. Expected result: ---------------- No message should be displayed, and the resulting array should be assigned to $ini_data. Actual result: -------------- Warning: syntax error, unexpected BOOL_FALSE in required/config.ini on line 2 -- Edit bug report at http://bugs.php.net/bug.php?id=54743&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54743&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54743&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54743&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54743&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54743&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54743&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54743&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54743&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54743&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54743&r=support Expected behavior: http://bugs.php.net/fix.php?id=54743&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54743&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54743&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54743&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54743&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54743&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54743&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54743&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54743&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54743&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54743&r=mysqlcfg