mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Add non-NULL assertion to zend_get_gc_buffer_add_obj() (#17671)
This would've saved me time when fixing the nightly failure in Laravel [1].
[1] e306a2e0
This commit is contained in:
parent
5f7a9ee97e
commit
50ed7b58bf
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ static zend_always_inline void zend_get_gc_buffer_add_zval(
|
|||
|
||||
static zend_always_inline void zend_get_gc_buffer_add_obj(
|
||||
zend_get_gc_buffer *gc_buffer, zend_object *obj) {
|
||||
ZEND_ASSERT(obj != NULL);
|
||||
|
||||
if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) {
|
||||
zend_get_gc_buffer_grow(gc_buffer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue