]> granicus.if.org Git - php/commitdiff
force unicode off in native mode (-N switch)
authorRob Richards <rrichards@php.net>
Sat, 22 Jul 2006 13:12:19 +0000 (13:12 +0000)
committerRob Richards <rrichards@php.net>
Sat, 22 Jul 2006 13:12:19 +0000 (13:12 +0000)
swap usage of single and double quotes for win32 compat

run-tests.php

index d0e6df38bf8b719317ca403b7b073864c1eebc25..879e364c0eac940d787b14a7582198197f951da2 100755 (executable)
@@ -179,9 +179,9 @@ More .INIs  : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n"
        settings2params($info_params);
        $php_info = `$php $pass_options $info_params $info_file`;
        @unlink($info_file);
-       define('TESTED_PHP_VERSION', `$php -r 'echo PHP_VERSION;'`);
+       define('TESTED_PHP_VERSION', `$php -r "echo PHP_VERSION;"`);
 
-       $unicode = `$php $pass_options $info_params -r 'echo ini_get("unicode.semantics");'`;
+       $unicode = `$php $pass_options $info_params -r "echo ini_get('unicode.semantics');"`;
        define('TESTED_UNICODE', strcasecmp($unicode,"on") == 0 || $unicode == 1);
 
        // load list of enabled extensions
@@ -333,6 +333,7 @@ if (isset($argc) && $argc > 1) {
                                case 'N':
                                        $unicode_and_native = false;
                                        $unicode_testing = false;
+                                       $ini_overwrites[] = 'unicode.semantics=0';
                                        break;
                                case '--no-clean':
                                        $no_clean = true;