]> granicus.if.org Git - php/commitdiff
run-tests.php: Added %u|b% placeholder, like %unicode|string%, for array
authorArnaud Le Blanc <lbarnaud@php.net>
Mon, 8 Sep 2008 09:23:24 +0000 (09:23 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Mon, 8 Sep 2008 09:23:24 +0000 (09:23 +0000)
keys in var_dump() output.

run-tests.php

index 9b9b2f9157d7bdd185cfd3c0532bb3fd01350925..8ea1aeda486933a4b7ea5a8c5c1da0cdb7c2846b 100755 (executable)
@@ -1741,6 +1741,11 @@ COMMAND $cmd
                                version_compare(PHP_VERSION, '6.0.0-dev') == -1 ? 'string' : 'unicode',
                                $wanted_re
                        );
+                       $wanted_re = str_replace(
+                               array('%u\|b%', '%b\|u%'),
+                               version_compare(PHP_VERSION, '6.0.0-dev') == -1 ? '' : 'u',
+                               $wanted_re
+                       );
                        // Stick to basics
                        $wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
                        $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);