Small bug in Config/Container/IniFile.php

From: Date: Tue, 21 Oct 2003 09:42:02 +0000
Subject: Small bug in Config/Container/IniFile.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22867@lists.php.net to get a copy of this message
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

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