#19608 [Opn]: parse_ini_file(): undocumented behaviour with constants

From: Date: Thu, 26 Sep 2002 20:37:02 +0000
Subject: #19608 [Opn]: parse_ini_file(): undocumented behaviour with constants
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969348833@lists.php.net to get a copy of this message
ID: 19608 Updated by: goba@php.net Reported By: jaenecke@gmx.li Status: Open Bug Type: Documentation problem Operating System: Linux 2.4.18 PHP Version: 4.2.3 New Comment: Well, this is a feature, this is how E_ constants work in the ini file I guess. This can be useful in many cases, so it definitely needs to be added into the docs. Previous Comments: ------------------------------------------------------------------------ [2002-09-26 14:34:55] jaenecke@gmx.li . ------------------------------------------------------------------------ [2002-09-26 03:58:15] jaenecke@gmx.li 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 this bug report at http://bugs.php.net/?id=19608&edit=1

« previous php.doc (#969348833) next »