]> granicus.if.org Git - php/commitdiff
Fixed ini argument parsing. We now support ini options with = in the argument,
authorIlia Alshanetsky <iliaa@php.net>
Sun, 3 Nov 2002 15:42:59 +0000 (15:42 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 3 Nov 2002 15:42:59 +0000 (15:42 +0000)
such as the one being used in session test #21, which is once again working
properly.

run-tests.php

index 4c15938788a4ab1d4067ea6585ef6afdffef5ed1..24d6bf3b5b57cabbf0db4b4e914ececa226ee264 100755 (executable)
@@ -706,7 +706,7 @@ function settings2array($settings, &$ini_settings)
 {
        foreach($settings as $setting) {
                if (strpos($setting, '=')!==false) {
-                       $setting = explode("=", $setting);
+                       $setting = explode("=", $setting, 2);
                        $name = trim(strtolower($setting[0]));
                        $value = trim($setting[1]);
                        $ini_settings[$name] = $value;