Re: Small bug in Config/Container/IniFile.php

From: Date: Tue, 21 Oct 2003 09:44:42 +0000
Subject: Re: Small bug in Config/Container/IniFile.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22868@lists.php.net to get a copy of this message
Hello :) I suggest you add the bug to the bug database via http://pear.php.net/bugs/report.php?package=Config so the maintainers will have an easier time finding, and fixing this bug :) Thanks for reporting it. Cipri ----- Original Message ----- From: "Jan Wagner" <wagner@netsols.de> To: <pear-dev@lists.php.net> Sent: Tuesday, October 21, 2003 11:42 AM Subject: [PEAR-DEV] Small bug in Config/Container/IniFile.php > Hi there, > > when I add a directive to a section and its content includes a '%', the > resulting line in the IniFile will not enclose the string with "". This > makes the Parser stumble over this line when loading the IniFile later: > > Warning: Error parsing inifile.conf on line 12 > in /usr/share/php/Config/Container/IniFile.php on line 63 > > Solution would be to add the following somewhere arround line 122 in > Config/Container/IniFile.php: > > strpos( $content, '%' ) !== false || > > This happens with PHP 4.3.3 and seems to be a problem of > parse_ini_file(). > > Besides that. Great class. > > Jan > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.dev (#22868) next »