ID:               44574
 Updated by:       [EMAIL PROTECTED]
 Reported By:      letssurf at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: Linux 2.6.9-34
 PHP Version:      5.3CVS-2008-03-31 (snap)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.3-win32-installer-latest.msi

I can't reproduce this. Try more recent snapshot.


Previous Comments:
------------------------------------------------------------------------

[2008-03-31 09:24:18] letssurf at gmail dot com

Description:
------------
parse_ini_file doesn't see the EOF as a delimiter for ini entries.

Reproduce code:
---------------
-- file: config.ini --
[section1]
name = value <<< EOF here, no new line

-- file: test.php --
<?php
$ini = parse_ini_file('config.ini', true);
print_r($ini);


Expected result:
----------------
Array ( [section1] => Array ( [name] => value ) )

Actual result:
--------------
Warning: syntax error, unexpected $end in eof.ini on line 2 in test.php
on line 2
Array ( [section1] => Array ( ) )


------------------------------------------------------------------------


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

Reply via email to