1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00

More changes to allow the same tests to be used with PHP5 and PHP6

This commit is contained in:
Zoe Slattery
2008-12-06 12:02:24 +00:00
parent 27c06db0bd
commit 488d12c2e5
+6
View File
@@ -1725,6 +1725,12 @@ COMMAND $cmd
if (isset($section_text['EXPECTF'])) {
$wanted_re = preg_quote($wanted_re, '/');
$wanted_re = str_replace(
array('%binary_string_optional%'),
version_compare(PHP_VERSION, '6.0.0-dev') == -1 ? 'string' : 'binary string',
$wanted_re
);
$wanted_re = str_replace(
array('%unicode_string_optional%'),
version_compare(PHP_VERSION, '6.0.0-dev') == -1 ? 'string' : 'Unicode string',