From 01990e0f64aac57050a00c0f41fbd0ef2a5d0ad3 Mon Sep 17 00:00:00 2001 From: Martijn Otto Date: Fri, 19 Jun 2015 10:14:06 +0200 Subject: Fix bug chaining magic methods --- zend/value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zend/value.cpp') diff --git a/zend/value.cpp b/zend/value.cpp index 9fb59f4..7c95c06 100644 --- a/zend/value.cpp +++ b/zend/value.cpp @@ -208,7 +208,7 @@ Value::Value(const Base *object) obj_bucket->bucket.obj.refcount += 1; // this is copy-pasted from zend_objects.c - and it is necessary too! - if (!obj_bucket->bucket.obj.handlers) obj_bucket->bucket.obj.handlers = &std_object_handlers; + if (!obj_bucket->bucket.obj.handlers) obj_bucket->bucket.obj.handlers = ClassImpl::objectHandlers(impl->php()->ce); // store the handlers in the zval too (cast is necessary for php 5.3) Z_OBJ_HT_P(_val) = (zend_object_handlers*)obj_bucket->bucket.obj.handlers; -- cgit v1.2.3