From: Arnaud Le Blanc Date: Mon, 8 Sep 2008 09:23:24 +0000 (+0000) Subject: run-tests.php: Added %u|b% placeholder, like %unicode|string%, for array X-Git-Tag: BEFORE_HEAD_NS_CHANGE~460 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38af9b553575a2aadec5893ec380736c4077601f;p=php run-tests.php: Added %u|b% placeholder, like %unicode|string%, for array keys in var_dump() output. --- diff --git a/run-tests.php b/run-tests.php index 9b9b2f9157..8ea1aeda48 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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);