summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 6fb9683c5a..bd68a6c08b 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -1276,7 +1276,7 @@ PHP_FUNCTION(implode)
if (pieces == NULL) {
if (arg1_array == NULL) {
- zend_type_error("Argument must be an array");
+ zend_type_error("%s() expects argument #1 ($pieces) to be of type array, string given", get_active_function_name());
RETURN_THROWS();
}
@@ -1284,7 +1284,7 @@ PHP_FUNCTION(implode)
pieces = arg1_array;
} else {
if (arg1_str == NULL) {
- zend_type_error("The first argument must be a string");
+ zend_type_error("%s() expects argument #1 ($glue) to be of type string, array given", get_active_function_name());
RETURN_THROWS();
}
}