Bug #52508 [Opn->Csd]: newline problem with parse_ini_file+INI_SCANNER_RAW
| From: | felipe@php.net | Date: | Sun, 01 Aug 2010 15:27:02 +0000 |
| Subject: | Bug #52508 [Opn->Csd]: newline problem with parse_ini_file+INI_SCANNER_RAW | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153013@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52508&edit=1
ID: 52508
Updated by: felipe@php.net
Reported by: tyra3l at gmail dot com
Summary: newline problem with parse_ini_file+INI_SCANNER_RAW
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: linux
PHP Version: 5.3.3
-Assigned To:
+Assigned To: felipe
Block user comment: N
New Comment:
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
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-08-01 17:26:56] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=301758
Log: - Fixed bug #52508 (newline problem with
parse_ini_file+INI_SCANNER_RAW)
------------------------------------------------------------------------
[2010-08-01 00:44:53] tyra3l at gmail dot com
Description:
------------
If I set the third parameter of the parse_ini_file function to
INI_SCANNER_RAW,
then the ini file has to end with a newline, else it will trigger a
"syntax error,
unexpected $end" warning.
The same ini file works with the default
scanner_mode(INI_SCANNER_NORMAL), so I
think this is a bug.
Test script:
---------------
<?php
$ini_array = parse_ini_file("test.ini", true, INI_SCANNER_RAW);
Expected result:
----------------
no warning
Actual result:
--------------
Warning: syntax error, unexpected $end ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52508&edit=1