From: Xinchen Hui Date: Thu, 10 Mar 2016 07:26:15 +0000 (+0800) Subject: object->ce should not be NULL X-Git-Tag: php-7.0.5RC1~10^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0fac47364c72fd78f2822c1b65c9b8abb58609a;p=php object->ce should not be NULL --- 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);