1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00
Files
archived-php-src/ext/standard
Christoph M. Becker 6e0505bf27 Fix GH-9589: dl() segfaults when module is already loaded
As of PHP 8.2.0, `zend_module_entry` structures are no longer copied,
so when a module is permanently loaded, and users try to dynamically
load that module again, the structure is corrupted[1], causing a
segfault on shutdown.

We catch that by checking whether any dynamically loaded module is
already loaded, and bailing out in that case without modifying the
`zend_module_entry` structure.

[1] <https://github.com/php/php-src/issues/9589#issuecomment-1263718701>

Closes GH-9689.
2022-10-10 13:36:57 +02:00
..
2022-10-10 11:25:33 +03:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2022-07-19 10:27:38 +01:00
2022-08-09 16:22:14 +02:00
2022-07-19 17:45:15 +02:00
2022-07-19 10:27:38 +01:00
2021-05-06 12:16:35 +02:00
2021-08-19 10:39:23 +02:00
2021-08-19 10:39:23 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2022-08-18 12:31:56 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2022-07-19 10:27:38 +01:00
2022-07-19 10:27:38 +01:00
2022-07-19 10:27:38 +01:00
2022-07-19 10:27:38 +01:00
2022-07-19 10:27:38 +01:00
2022-07-19 10:27:38 +01:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2022-07-19 10:27:38 +01:00
2021-05-06 12:16:35 +02:00