mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fixed NULL pointer dereference
This commit is contained in:
parent
bb1d61a848
commit
59590663d7
@ -620,7 +620,8 @@ static HashTable *zend_closure_get_gc(zend_object *obj, zval **table, int *n) /*
|
||||
|
||||
*table = Z_TYPE(closure->this_ptr) != IS_NULL ? &closure->this_ptr : NULL;
|
||||
*n = Z_TYPE(closure->this_ptr) != IS_NULL ? 1 : 0;
|
||||
return (closure->func.type == ZEND_USER_FUNCTION) ?
|
||||
return (closure->func.type == ZEND_USER_FUNCTION &&
|
||||
closure->func.op_array.static_variables) ?
|
||||
ZEND_MAP_PTR_GET(closure->func.op_array.static_variables_ptr) : NULL;
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user