diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2015-06-19 10:14:06 +0200 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2015-06-19 10:14:06 +0200 |
commit | 01990e0f64aac57050a00c0f41fbd0ef2a5d0ad3 (patch) | |
tree | 0979bbafa5aeb540a8e64c565074d5aeceb2cff1 /zend/value.cpp | |
parent | 4b984fe0810a7f46fc01639f12feccdaacf6cc86 (diff) |
Fix bug chaining magic methods
Diffstat (limited to 'zend/value.cpp')
-rw-r--r-- | zend/value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |