#49025 [Opn->Bgs]: parse_ini_file() cannot parse brackets in the values.

From: Date: Thu, 23 Jul 2009 11:04:10 +0000
Subject: #49025 [Opn->Bgs]: parse_ini_file() cannot parse brackets in the values.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140116@lists.php.net to get a copy of this message
ID: 49025 Updated by: jani@php.net -Summary: parse-ini-file cannot pars brackets in the values. Reported By: redplug at web dot de -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Debian "Leeny" PHP Version: 5.2.10 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2009-07-23 02:48:54] redplug at web dot de Description: ------------ The function parse-ini-file cannot pars brackets in the values! Reproduce code: --------------- --- From manual page: function.parse-ini-file --- Example: [Main] foobaa=()[]{} Expected result: ---------------- Warning: Error parsing foo.ini on line 1 in baa.php on line X Actual result: -------------- Her is the fix: http://pastebin.com/f719040f1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49025&edit=1

« previous php.bugs (#140116) next »