From 18aa5601afce83be74a70ce64900f620c8b3b395 Mon Sep 17 00:00:00 2001 From: andot Date: Thu, 10 Jul 2014 21:33:35 +0800 Subject: Fixed unset of Php::Value --- zend/value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3