php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28436 ini file with ! character fails
Submitted: 2004-05-18 20:41 UTC Modified: 2004-05-18 21:00 UTC
From: f dot braem at skynet dot be Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.0.0RC2 OS: Win32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: f dot braem at skynet dot be
New email:
PHP Version: OS:

 

 [2004-05-18 20:41 UTC] 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 )

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-18 20:42 UTC] pollita@php.net
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.
 [2004-05-18 21:00 UTC] f dot braem at skynet dot be
I can't find any related bug. Can you give me the id of the related bug?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 11:01:30 2024 UTC