[php-src] PR #14068: Fix GH-14067: Check for ZEND_MOD_CONFLICTS in zend_startup_module_ex

From: Date: Sun, 28 Apr 2024 13:26:24 +0000
Subject: [php-src] PR #14068: Fix GH-14067: Check for ZEND_MOD_CONFLICTS in zend_startup_module_ex
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25917@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/14068 Author: petk This is still work in progress and doesn't work for all cases yet, but could be a starting point to improve the ZEND_MOD_* macros a bit. For example, it still doesn't work when two conflicting extensions has conflicts listed for each other. When extension has conflicting extension(s) listed in ZEND_MOD_CONFLICTS this now properly emits a warning and doesn't load the extension. Previously it relied on the sort order of the registered extensions: - first the statically built extensions based on the PHP_ADD_EXTENSION_DEP (*nix) or ADD_EXTENSION_DEP (Windows) listed in the main/internal_functions.c or main/internal_functions_cli.c. - then dynamically loaded extensions using the extension=<ext> and zend_extension=<ext> INI directives. And it didn't detect conflicting extensions when they were loaded later in the list or when loaded as shared modules.

« previous php.git-pulls (#25917) next »