summaryrefslogtreecommitdiff
path: root/ext/spl/spl_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/spl_array.c')
-rw-r--r--ext/spl/spl_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 2796ca6501..7c75511c24 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -1755,7 +1755,7 @@ SPL_METHOD(Array, serialize)
PHP_VAR_SERIALIZE_DESTROY(var_hash);
if (buf.s) {
- RETURN_STR(buf.s);
+ RETURN_NEW_STR(buf.s);
}
RETURN_NULL();