|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48660 parse_ini_*(): dollar sign as last character of value fails
Submitted: 2009-06-23 13:54 UTC Modified: 2009-08-07 14:23 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: marek dot nos at skype dot net Assigned: jani (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.3, 6 (2009-08-04) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
28 + 12 = ?
Subscribe to this entry?

 [2009-06-23 13:54 UTC] marek dot nos at skype dot net
This is quite similar to #44609. Probably still not properly fixed.

Reproduce code:
// Set ini file location
$ini_location = dirname(__FILE__) . '/test.ini';

// Build ini data
$ini_data = '

Case.a = avalue
Case.b = "$dollar_sign$"
Case.c = 10

// Save ini data to file
file_put_contents($ini_location, $ini_data);


Expected result:
array(3) {
  string(6) "avalue"
  string(13) "$dollar_sign$"
  string(2) "10"

Actual result:
Warning:  syntax error, unexpected $end, expecting TC_DOLLAR_CURLY or TC_QUOTED_STRING or '"' in test.ini on line 5
 in C:\Users\Marek Nos\Documents\workspace\parse_ini.php on line 17


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-07 14:21 UTC]
Automatic comment from SVN on behalf of jani
Log: - Fixed bug #48660 (parse_ini_*(): dollar sign as last character of value fails)
 [2009-08-07 14:23 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 01:01:24 2019 UTC