#45974 [Opn]: parse_ini_file strange work with some char combination

From: Date: Tue, 02 Sep 2008 16:07:48 +0000
Subject: #45974 [Opn]: parse_ini_file strange work with some char combination
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128618@lists.php.net to get a copy of this message
ID: 45974 User updated by: mete0 at gtn dot ru Reported By: mete0 at gtn dot ru Status: Open Bug Type: *Directory/Filesystem functions Operating System: OpenBSD current PHP Version: 5.2.6 New Comment: Small typo in reproduce code, file name must be config.ini not config.in Previous Comments: ------------------------------------------------------------------------ [2008-09-02 16:01:50] mete0 at gtn dot ru Description: ------------ Function parse_ini_file() work strange with this char combination <! as value for parameters, all chars after <! will be skipped. Example: file config.ini [test] one = "work fine" two = ">!work fine too" three = "<!does not work" Reproduce code: --------------- <?php $cfg = parse_ini_file('config.in'); print_r($cfg); ?> Expected result: ---------------- Array ( [one] => work fine [two] => >!work fine too [three] => ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45974&edit=1

« previous php.bugs (#128618) next »