diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-09-08 09:23:51 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-09-08 09:23:51 +0000 |
commit | 163202ac8815c247ae3538c43e85dfbfd0d3cb00 (patch) | |
tree | 571f25e03923ef1202f63c9f9c3b3c500a8bdb3c | |
parent | 0c745885cac30bb206b2a5e0593a7f4c747ed1ba (diff) | |
download | php-git-163202ac8815c247ae3538c43e85dfbfd0d3cb00.tar.gz |
MFH: run-tests.php: Added %u|b% placeholder, like %unicode|string%, for
array keys in var_dump() output.
-rwxr-xr-x | run-tests.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php index ced680f494..c9a43f939c 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1736,6 +1736,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); |