Commit b77b505
phar: restore is_link handler in phar_intercept_functions_shutdown
phar_intercept_functions_init hooks 22 built-in functions via
PHAR_INTERCEPT. phar_intercept_functions_shutdown restores all of them
via PHAR_RELEASE except is_link, which was simply missing from the list.
On MSHUTDOWN the is_link entry in CG(function_table) retains the phar
intercept handler. In a persistent SAPI, if the module is reloaded, the
second MINIT saves PHP_FN(phar_is_link) as orig_is_link, and any
subsequent is_link() call recurses infinitely.
Closes GH-218001 parent 46286fb commit b77b505
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| 935 | + | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments