#28436 [Opn->Bgs]: ini file with ! character fails

From: Date: Tue, 18 May 2004 18:42:30 +0000
Subject: #28436 [Opn->Bgs]: ini file with ! character fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59739@lists.php.net to get a copy of this message
ID: 28436 Updated by: pollita@php.net Reported By: f dot braem at skynet dot be -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Win32 PHP Version: 5.0.0RC2 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. This is a known bug and is being worked on. Previous Comments: ------------------------------------------------------------------------ [2004-05-18 20:41:10] f dot braem at skynet dot be Description: ------------ With the given ini file: 0=Test 1 1=Test 2! 2=Test 3 The parsing of the file stops at the ! sign. When 1 is Test ! 2, only Test will be assigned to element 1. Reproduce code: --------------- <?php $values = parse_ini_file("c:\\temp\\test.ini"); print_r($values); ?> Expected result: ---------------- Array ( [0] => Test 1 [1] => Test 2 [2] => Test 3 ) Actual result: -------------- Array ( [0] => Test 1 [1] => Test 2 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28436&edit=1

« previous php.bugs (#59739) next »