summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-03-10 15:26:15 +0800
committerXinchen Hui <laruence@gmail.com>2016-03-10 15:26:15 +0800
commita0fac47364c72fd78f2822c1b65c9b8abb58609a (patch)
treec49fca4d3343ea783c729c7947c22d9c44d6acc3
parent351201bc7b246f0ce793307113c598db5864fdd7 (diff)
downloadphp-git-a0fac47364c72fd78f2822c1b65c9b8abb58609a.tar.gz
object->ce should not be NULL
-rw-r--r--ext/standard/var.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/var.c b/ext/standard/var.c
index fcee7a9cc6..bc76699070 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -864,7 +864,7 @@ again:
return;
}
- if (ce && ce != PHP_IC_ENTRY && zend_hash_str_exists(&ce->function_table, "__sleep", sizeof("__sleep")-1)) {
+ if (ce != PHP_IC_ENTRY && zend_hash_str_exists(&ce->function_table, "__sleep", sizeof("__sleep")-1)) {
ZVAL_STRINGL(&fname, "__sleep", sizeof("__sleep") - 1);
BG(serialize_lock)++;
res = call_user_function_ex(CG(function_table), struc, &fname, &retval, 0, 0, 1, NULL);