com php-src: object->ce should not be NULL: ext/standard/var.c

From: Date: Thu, 10 Mar 2016 07:26:15 +0000
Subject: com php-src: object->ce should not be NULL: ext/standard/var.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91308@lists.php.net to get a copy of this message
Commit: a0fac47364c72fd78f2822c1b65c9b8abb58609a Author: Xinchen Hui <laruence@gmail.com> Thu, 10 Mar 2016 15:26:15 +0800 Parents: 351201bc7b246f0ce793307113c598db5864fdd7 Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a0fac47364c72fd78f2822c1b65c9b8abb58609a Log: object->ce should not be NULL Changed paths: M ext/standard/var.c Diff: diff --git a/ext/standard/var.c b/ext/standard/var.c index fcee7a9..bc76699 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);

« previous php.cvs (#91308) next »