php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62517 parse_ini_file, memory corruption
Submitted: 2012-07-09 13:56 UTC Modified: 2012-07-10 12:20 UTC
From: bernhard dot hari at multisports dot ch Assigned: pierrick (profile)
Status: Closed Package: *Directory/Filesystem functions
PHP Version: Irrelevant OS: Windows / Linux
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: bernhard dot hari at multisports dot ch
New email:
PHP Version: OS:

 

 [2012-07-09 13:56 UTC] bernhard dot hari at multisports dot ch
Description:
------------
I've got memory problems both on windows and linux using the 
INI_SCANNER_RAW option when parsing a simple test configuration file.
Definition is used for the list separator character within CSV reports.

Linux: php -v ==> 5.4.3
Windows: php -v ==> 5.3.5

Linux message:
/opt/php/bin/php test.php
*** glibc detected *** /opt/php/bin/php: malloc(): memory corruption: 0x0a3a0e38 ***

Windows message:
Unhandled exception at 0x715cae7a in php.exe: 0xC0000005: Access violation reading location 0x03951000.

Using sinlge quotes all works fine.

Test script:
---------------
<?php
parse_ini_file("test.ini", true, INI_SCANNER_RAW);
?>

file test.ini:
[test]
csv_list_separator=";"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-09 15:40 UTC] pierrick@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: pierrick
 [2012-07-09 15:40 UTC] pierrick@php.net
Please try using this snapshot:

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

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


 [2012-07-10 10:59 UTC] bernhard dot hari at multisports dot ch
-Status: Feedback +Status: Assigned
 [2012-07-10 10:59 UTC] bernhard dot hari at multisports dot ch
Windows Snapshot 5.4.5 (php-5.4-nts-windows-vc9-x86-r2032470) solved issue.
Thanks a lot.
 [2012-07-10 12:20 UTC] pierrick@php.net
-Status: Assigned +Status: Closed
 [2012-07-10 12:20 UTC] pierrick@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC