[php-src] PR #21800: phar: restore is_link handler in phar_intercept_functions_shutdown
| From: | iliaal | Date: | Sat, 18 Apr 2026 13:12:49 +0000 |
| Subject: | [php-src] PR #21800: phar: restore is_link handler in phar_intercept_functions_shutdown | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35771@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21800
Author: iliaal
(MINIT) hooks 22 built-in functions via , including . (MSHUTDOWN) restores all of them via ,
except , which was simply absent from the list.
In a persistent SAPI, if the module is reloaded, the second MINIT picks up as the original handler
for and stores it in . Any subsequent call then recurses infinitely. In practice this only bites
on module reload in Apache/FPM workers; in CLI the process exits at MSHUTDOWN so the stale handler
is never observable.
Added between and to match init order.