php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29518 parse_ini_file and multibyte chars bug (char code 5d)
Submitted: 2004-08-04 08:30 UTC Modified: 2005-02-11 01:00 UTC
Votes:2
Avg. Score:2.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: takeone at myrealbox dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.8 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: takeone at myrealbox dot com
New email:
PHP Version: OS:

 

 [2004-08-04 08:30 UTC] takeone at myrealbox dot com
Description:
------------
parse_ini_file does not recognize value "]" (ascii code: 5d).
so, multibyte charcters including code "5d" is not recognized.

for example, Japanese Shift-JIS code "935d", "965d"..etc.

Reproduce code:
---------------
test.php
<?php
$ini = parse_ini_file('test.ini');
print_r($ini);
?>

test.ini
[test]
;value is code "935d" (Shift-JIS)
value="?]"

Expected result:
----------------
Array ( [value] => ?] )

#of cource, the value of [value] is code "935d".

Actual result:
--------------
Array ( ) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 09:01:29 2025 UTC