diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-03 18:03:39 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-03 18:03:39 +0100 |
commit | 70986b4bcdf7793c4bb8a4e14d91e6531c95f651 (patch) | |
tree | 3009209b9fbcb3d51bc117061a766341c8a71a24 /src/value.cpp | |
parent | 8f24af4c28e74ef1769aef6ab00c480e09be7453 (diff) |
work in progress for support for creating object instances
Diffstat (limited to 'src/value.cpp')
-rw-r--r-- | src/value.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/value.cpp b/src/value.cpp index f7eff56..ab4c350 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -1397,8 +1397,8 @@ bool Value::contains(const char *key, int size) const // retrieve the class entry auto *entry = zend_get_class_entry(_val); - // read the property - zval *property = zend_read_property(entry, _val, key, size, 0); + // read the property (cast necessary for php 5.3) + zval *property = zend_read_property(entry, _val, (char *)key, size, 0); // check if valid return property != nullptr; @@ -1461,8 +1461,8 @@ Value Value::get(const char *key, int size) const // retrieve the class entry auto *entry = zend_get_class_entry(_val); - // read the property - zval *property = zend_read_property(entry, _val, key, size, 1); + // read the property (case necessary for php 5.3) + zval *property = zend_read_property(entry, _val, (char *)key, size, 1); // wrap in value return Value(property); @@ -1534,8 +1534,8 @@ const Value &Value::set(const char *key, int size, const Value &value) // retrieve the class entry auto *entry = zend_get_class_entry(_val); - // update the property - zend_update_property(entry, _val, key, size, value._val); + // update the property (cast necessary for php 5.3) + zend_update_property(entry, _val, (char *)key, size, value._val); } else { |