Bug #55260 [NEW]: parse_ini_file breaks with ampersand
| From: | austinb at inn-soft dot com | Date: | Thu, 21 Jul 2011 15:48:23 +0000 |
| Subject: | Bug #55260 [NEW]: parse_ini_file breaks with ampersand | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-162085@lists.php.net to get a copy of this message | ||
From:
Operating system: ubuntu4.9
PHP version: Irrelevant
Package: Unknown/Other Function
Bug Type: Bug
Bug description:parse_ini_file breaks with ampersand
Description:
------------
With an ampersand in the commented section of code, it crashes the
function,
always returns false.
Test script:
---------------
INI FILE
//-- SETUP FEE, INCLUDES LICENSE FOR HBP & TIME TO INSTALL IT
setupFee="79.99";
PHP
var_dump(parse_ini_file('./packageInfo.ini'));
RETURN
bool(false)
INI FILE
//-- SETUP FEE, INCLUDES LICENSE FOR HBP AND TIME TO INSTALL IT
setupFee="79.99";
PHP
var_dump(parse_ini_file('./packageInfo.ini'));
RETURN
array(1) { ["setupFee"]=> string(5) "79.99" }
--
Edit bug report at https://bugs.php.net/bug.php?id=55260&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55260&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55260&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55260&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55260&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55260&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55260&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55260&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55260&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55260&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55260&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55260&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55260&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55260&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55260&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55260&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55260&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55260&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55260&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55260&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55260&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55260&r=mysqlcfg