|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-05-22 22:27 UTC] philip@php.net
Description:
------------
MySQL has options (such as "no-auto-rehash") in my.cnf that do not take values. In this case, it's one of the following:
no-auto-rehash
auto-rehash
The parse_ini_* functions ignore these, as they lack an "=".
Test script:
---------------
philip$ php -r '$s = "foo = bar\nauto-rehash\nbaz ="; var_dump(parse_ini_string($s));'
Expected result:
----------------
array(3) {
["foo"]=>
string(3) "bar"
["auto-refresh"]=>
string(0) ""
["baz"]=>
string(0) ""
}
Actual result:
--------------
array(2) {
["foo"]=>
string(3) "bar"
["baz"]=>
string(0) ""
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 15:00:01 2025 UTC |
You just missed a simple change: -LABEL [^=\n\r\t;|&$~(){}!"\[]+ +LABEL [^=\n\r\t;|&$~(){}!"\[\000]+