Bug #52508 [NEW]: newline problem with parse_ini_file+INI_SCANNER_RAW
| From: | tyra3l at gmail dot com | Date: | Sat, 31 Jul 2010 22:44:54 +0000 |
| Subject: | Bug #52508 [NEW]: newline problem with parse_ini_file+INI_SCANNER_RAW | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-153010@lists.php.net to get a copy of this message | ||
From:
Operating system: linux
PHP version: 5.3.3
Package: Scripting Engine problem
Bug Type: Bug
Bug description:newline problem with parse_ini_file+INI_SCANNER_RAW
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 bug report at http://bugs.php.net/bug.php?id=52508&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52508&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52508&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52508&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52508&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52508&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52508&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52508&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52508&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52508&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52508&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52508&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52508&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52508&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52508&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52508&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52508&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52508&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52508&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52508&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52508&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52508&r=mysqlcfg