]> granicus.if.org Git - php/commitdiff
object->ce should not be NULL
authorXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:26:15 +0000 (15:26 +0800)
committerXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:26:15 +0000 (15:26 +0800)
ext/standard/var.c

index fcee7a9cc6bff2e21e9eaa935f690950362e56e7..bc766990703e52958974557a0bdf1f141995e9ce 100644 (file)
@@ -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);