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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 2c415cc8f4..f89f4989ef 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -487,6 +487,7 @@ PHP_FUNCTION(implode)
if ((*arg1)->type == IS_ARRAY && (*arg2)->type == IS_STRING) {
SEPARATE_ZVAL(arg1);
arr = *arg1;
+ convert_to_string_ex(arg2);
delim = *arg2;
} else if ((*arg2)->type == IS_ARRAY) {
SEPARATE_ZVAL(arg2)