|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-15 17:10 UTC] pierrick@php.net
[2013-04-18 06:36 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2013-04-18 06:36 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 14:00:01 2025 UTC |
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) "''" } }