summaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 12:00:11 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 12:00:11 +0100
commit41bd759f31d625b5f73dd3a31d76a91efbde8ad7 (patch)
treeb995cc0c295c031c6cf130fe0f4f51b286a0511e /src/base.cpp
parent52fe0c39457421e075959179ee6b64a20b96f0d9 (diff)
working implementation for Base::value()
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/base.cpp b/src/base.cpp
index b5f2f86..867fd9c 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -18,12 +18,8 @@ namespace Php {
*/
Value Base::value() const
{
- // because the object is stored in a MixedObject, we know that the zend_object
- // structure is right in front of the this pointer
- zend_object *object = (zend_object *)this - sizeof(zend_object);
-
// wrap the properties table, as a reference
- return Object(*object->properties_table, true);
+ return Object(*_object->properties_table, true);
}
/**