From: eduosi at 163 dot com
Operating system:
PHP version: 5.3Git-2013-04-15 (Git)
Package: Unknown/Other Function
Bug Type: Bug
Bug description:parse_ini_file parse ini file
Description:
------------
Dearï¼
php version 5.3.0 or greater 5.3.0ï¼
parse_ini_file() loads in the ini file specified in file, if param
$scanner_mode equal 'INI_SCANNER_RAW' and option value contain ';', this
value will be truncated.
Test script:
---------------
====== ini file ======
simple.ini
[db]
connectionString='mysql:dbname=db;host=127.0.0.1'
username='root'
passwrd=''
====== php script ======
<?php
var_dump(parse_ini_file('simple.ini', TRUE, INI_SCANNER_RAW));
====== result ======
array(1) {
["db"]=>
array(3) {
["connectionString"]=>
string(17) "'mysql:dbname=db"
["username"]=>
string(6) "'root'"
["password"]=>
string(2) "''"
}
}
====== I expect results ======
array(1) {
["db"]=>
array(3) {
["connectionString"]=>
string(17) "'mysql:dbname=db;host=127.0.0.1'"
["username"]=>
string(6) "'root'"
["password"]=>
string(2) "''"
}
}
--
Edit bug report at https://bugs.php.net/bug.php?id=64650&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=64650&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=64650&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=64650&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64650&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64650&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64650&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64650&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64650&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64650&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64650&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=64650&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=64650&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64650&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64650&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64650&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64650&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64650&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64650&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64650&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64650&r=mysqlcfg