History log of /PHP-8.1/Zend/tests/register_shutdown_function_refcount.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# fabcc9a3 11-Oct-2021 Nikita Popov

Fix long-term shutdown/tick fci/fcc storage

Normally incrementing the refcount on just function_name is
sufficient. However, if the callable is of the form 'X::y' inside
an instance

Fix long-term shutdown/tick fci/fcc storage

Normally incrementing the refcount on just function_name is
sufficient. However, if the callable is of the form 'X::y' inside
an instance method, this will capture $this in fcc.object, which
also needs to be retained.

The fci_addref/fci_release helpers should likely be exported as
a general API, as we may have this problem in other places as
well.

Fixes oss-fuzz #39778.

show more ...