diff options
author | andot <mabingyao@gmail.com> | 2014-07-10 21:33:35 +0800 |
---|---|---|
committer | andot <mabingyao@gmail.com> | 2014-07-10 21:33:35 +0800 |
commit | 18aa5601afce83be74a70ce64900f620c8b3b395 (patch) | |
tree | c323baf70ff202db48d209d44a90c0ed0f3ada0e /zend | |
parent | 28578382589dab25ea5fbd35b7754687706abc07 (diff) |
Fixed unset of Php::Value
Diffstat (limited to 'zend')
-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 9a1a5db..6890ffd 100644 --- a/zend/value.cpp +++ b/zend/value.cpp @@ -1942,7 +1942,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); } } |