summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 42c423e6bd..ee340829ee 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -2295,7 +2295,7 @@ static void preg_replace_common(INTERNAL_FUNCTION_PARAMETERS, bool is_filter)
/* If replace is an array then the regex argument needs to also be an array */
if (replace_ht && !regex_ht) {
- zend_argument_type_error(1, "must be of type array when argument #2 ($replace) is an array, string given");
+ zend_argument_type_error(1, "must be of type array when argument #2 ($replacement) is an array, string given");
RETURN_THROWS();
}