diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-11 20:09:36 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-11 20:09:36 +0100 |
commit | 74388e2735e806837cd31052c513451ec3942c0a (patch) | |
tree | d674ffbcfb1d7667e434ae2cce3c4950025146c8 | |
parent | d31039e6eebedaf4573e99cd11df58c958b82ddb (diff) | |
parent | 18aa5601afce83be74a70ce64900f620c8b3b395 (diff) |
Merge pull request #118 from andot/fixedunset
Fixed unset of Php::Value
-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 228b810..4a59d97 100644 --- a/zend/value.cpp +++ b/zend/value.cpp @@ -1698,7 +1698,7 @@ void Value::unset(const char *key, int size) SEPARATE_ZVAL_IF_NOT_REF(&_val); // remove the index - zend_hash_del(Z_ARRVAL_P(_val), key, size); + zend_hash_del(Z_ARRVAL_P(_val), key, size + 1); } } |