From: [EMAIL PROTECTED] Operating system: Linux 2.4.18 PHP version: 4.2.3 PHP Bug Type: Documentation problem Bug description: undocumented behaviour with constants
Given a file test.ini like foo = BAR and parsing it in parse.php: define ( 'BAR', 'just any value' ); $ini = parse_ini_file ( 'test.ini' ); print_r ( $ini ); will result in Array ( [foo] => just any value ) This is maybe a quite useful behaviour but should at least be mentioned in the documentation. I would prefer a third argument added to the function which could be used to turn this feature off. -- Edit bug report at http://bugs.php.net/?id=19608&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19608&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19608&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19608&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19608&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19608&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19608&r=support Expected behavior: http://bugs.php.net/fix.php?id=19608&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19608&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19608&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19608&r=globals -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php