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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC