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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 12:01:29 2024 UTC