Skip to content

Disable RTLD_DEEPBIND on all PHP SAPIs except for apache

Daniil Gentili requested to merge danog/php:disable_rtld_deepbind into main

This pull request changes the default behavior of dlopen to use RTLD_DEEPBIND only when compiling the Apache SAPI.

This fixes compatibility with custom allocators like jemalloc on newer glibc versions, while still retaining the old DEEPBIND behavior for apache, which seems to have been the reason why it was added.

Also see https://github.com/php/php-src/issues/10670, https://github.com/php/php-src/pull/11094, https://github.com/php/php-src/pull/16779

Merge request reports

Loading