From: php dot net at sharpdreams dot com Operating system: Win32 PHP version: 5CVS-2005-09-03 (snap) PHP Bug Type: Filesystem function related Bug description: parse_ini_file interprets "null" as empty string
Description: ------------ The documentation is unclear on this aspect so I am presuming this is a bug: Keys in INI files set to null (no quotes) are parsed as empty string "" instead of a true null. If this is intended behavior then it should be documented as such. Reproduce code: --------------- -- test.ini -- [foo] bar = null -- test.php -- var_dump( parse_ini_file( "test.ini" ) ); Expected result: ---------------- array(1) { ["foo"]=> NULL } Actual result: -------------- array(1) { ["foo"]=> string(0) "" } -- Edit bug report at http://bugs.php.net/?id=34354&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34354&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34354&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34354&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34354&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34354&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34354&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34354&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34354&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34354&r=support Expected behavior: http://bugs.php.net/fix.php?id=34354&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34354&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34354&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34354&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34354&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34354&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34354&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34354&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34354&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34354&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34354&r=mysqlcfg