Edit report at http://bugs.php.net/bug.php?id=52508&edit=1

 ID:                 52508
 Updated by:         [email protected]
 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] [email protected]

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

Reply via email to