summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandot <mabingyao@gmail.com>2014-07-10 21:33:35 +0800
committerandot <mabingyao@gmail.com>2014-07-10 21:33:35 +0800
commit18aa5601afce83be74a70ce64900f620c8b3b395 (patch)
treec323baf70ff202db48d209d44a90c0ed0f3ada0e
parent28578382589dab25ea5fbd35b7754687706abc07 (diff)
Fixed unset of Php::Value
-rw-r--r--zend/value.cpp2
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);
}
}