summaryrefslogtreecommitdiff
path: root/ext/overload
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2001-12-07 14:30:55 +0000
committerAndrei Zmievski <andrei@php.net>2001-12-07 14:30:55 +0000
commit480d2b56247ece9076b16720b1423ff3f38e54ab (patch)
tree44d2e7a4c9524c5959d3cf55224c268e16e2bfac /ext/overload
parent8e29c1e9eec1a94ef80628544760e0b51b78cb0a (diff)
downloadphp-git-480d2b56247ece9076b16720b1423ff3f38e54ab.tar.gz
Make sure refcount is 1 on stack zval.
Diffstat (limited to 'ext/overload')
-rw-r--r--ext/overload/overload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/overload/overload.c b/ext/overload/overload.c
index 3bc3af513e..90b52b26b1 100644
--- a/ext/overload/overload.c
+++ b/ext/overload/overload.c
@@ -460,6 +460,7 @@ static void overload_call_method(INTERNAL_FUNCTION_PARAMETERS, zend_property_ref
} else {
ZVAL_STRINGL(&call_handler, Z_STRVAL(method->element), Z_STRLEN(method->element), 0);
}
+ INIT_PZVAL(&call_handler);
call_result = call_user_function_ex(NULL,
&object,