]> granicus.if.org Git - php/commitdiff
MFH: fix #39112 (typo in error message)
authorAntony Dovgal <tony2001@php.net>
Tue, 10 Oct 2006 12:44:02 +0000 (12:44 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 10 Oct 2006 12:44:02 +0000 (12:44 +0000)
ext/pcre/php_pcre.c
ext/pcre/tests/preg_replace2.phpt

index 0bfc13faca5f369ada09763067cadc092c204633..b6cf8d050a0e02bb166a670bccf68ca7bf9722e9 100644 (file)
@@ -1260,7 +1260,7 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_callabl
                WRONG_PARAM_COUNT;
        }
        if (!is_callable_replace && Z_TYPE_PP(replace) == IS_ARRAY && Z_TYPE_PP(regex) != IS_ARRAY) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Parameter mismatch, pattern is a string while replacement in an array.");
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Parameter mismatch, pattern is a string while replacement is an array");
                RETURN_FALSE;
        }
 
index 80a94d876897daca699b4f775bc9d83ec52c7577..4e2f39f8ca7b3e4d2d795a7add26f8305f6d101f 100644 (file)
@@ -16,7 +16,7 @@ echo "==done==\n";
 
 ?>
 --EXPECTF--
-Warning: preg_replace(): Parameter mismatch, pattern is a string while replacement in an array. in %spreg_replace2.php on line 3
+Warning: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array in %spreg_replace2.php on line 3
 bool(false)
 string(1) "c"
 array(3) {