#19608 [NEW]: undocumented behaviour with constants
| From: | jaenecke at gmx dot li | Date: | Thu, 26 Sep 2002 08:58:15 +0000 |
| Subject: | #19608 [NEW]: undocumented behaviour with constants | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969348816@lists.php.net to get a copy of this message | ||
From: jaenecke@gmx.li
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