php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50936 ini key may not have a slash in it
Submitted: 2010-02-05 09:01 UTC Modified: 2010-02-05 12:57 UTC
From: kubelke at kuborgh dot de Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5.3.1 OS: Mac 10.6
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: kubelke at kuborgh dot de
New email:
PHP Version: OS:

 

 [2010-02-05 09:01 UTC] kubelke at kuborgh dot de
Description:
------------
A Slash in ini key leads to an error on mac, pc works. No exception 
thrown.

Reproduce code:
---------------
---
From manual page: function.parse-ini-string#Notes
---
try {
	$arr = parse_ini_string('ActionTheme.Member/Search = 1');
	print_r($arr);
} catch (Exception $e) {
	echo $e->getMessage();
}


Expected result:
----------------
Array ( [ActionTheme.Member/Search] => 1 )

Actual result:
--------------
"nothing" not even an empty array

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-05 12:56 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

IIRC, this was fixed long time ago in SVN repo.
 [2010-02-05 12:57 UTC] jani@php.net
Tested myself, it is fixed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 12:01:36 2025 UTC