Bug #68461 [Opn]: parse_ini_file not parsing conf file if it has line like "on="

From: Date: Thu, 20 Nov 2014 17:16:12 +0000
Subject: Bug #68461 [Opn]: parse_ini_file not parsing conf file if it has line like "on="
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188716@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68461&edit=1 ID: 68461 Updated by: requinix@php.net Reported by: sandeep dot singh dot bisht at gmail dot com Summary: parse_ini_file not parsing conf file if it has line like "on=" Status: Open Type: Bug Package: Filter related Operating System: Ubuntu PHP Version: 5.5.19 Block user comment: N Private report: N New Comment: See also bug #68347, though I don't think it can be reasonably argued that this version is not a bug either. Previous Comments: ------------------------------------------------------------------------ [2014-11-20 12:42:31] sandeep dot singh dot bisht at gmail dot com Description: ------------ If conf file have something like on= Then it throws warning php: PHP Warning: syntax error, unexpected BOOL_TRUE in test.conf on line 4#012 in /tmp/test.php on line 2 Test script: --------------- $ cat test.conf [data] test=test abc=abc on=test $ cat test.php <?php $conf=parse_ini_file("test.conf",true); print_r($conf); ?> $php test.php Not printing anything.But getting this warning php: PHP Warning: syntax error, unexpected BOOL_TRUE in test.conf on line 4#012 in /tmp/test.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68461&edit=1

« previous php.bugs (#188716) next »