mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
More changes to allow the same tests to be used with PHP5 and PHP6
This commit is contained in:
parent
e21c6d9540
commit
b9eb13ad8a
@ -1734,6 +1734,11 @@ 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',
|
||||
|
Loading…
Reference in New Issue
Block a user