#33574 [Opn]: parse_ini_file fails to parse values containing "{"
| From: | m at tacker dot org | Date: | Tue, 05 Jul 2005 11:42:42 +0000 |
| Subject: | #33574 [Opn]: parse_ini_file fails to parse values containing "{" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81403@lists.php.net to get a copy of this message | ||
ID: 33574
User updated by: m at tacker dot org
Reported By: m at tacker dot org
Status: Open
Bug Type: Filesystem function related
Operating System: Gentoo Linux
PHP Version: 5.1.0b2
New Comment:
Using quotations fixes that problem.
Previous Comments:
------------------------------------------------------------------------
[2005-07-05 13:40:27] m at tacker dot org
Fixed some typos.
------------------------------------------------------------------------
[2005-07-05 13:38:41] m at tacker dot org
Description:
------------
PHP 5.1's parse_ini_file cannot parse this line where 5.0's can:
from_email = NOREPLY.{installation.id}@{mailer.hostname}
Expected result:
----------------
An array with
$config = array(
'from_email' => 'NOREPLY.{installation.id}@{mailer.hostname}'
);
Actual result:
--------------
Warning: Error parsing ../include/config/config.ini
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33574&edit=1