[php-src] Issue #9893: `zend_extension` php.ini uses different path discovery than `extension`

From: Date: Fri, 04 Nov 2022 18:16:46 +0000
Subject: [php-src] Issue #9893: `zend_extension` php.ini uses different path discovery than `extension`
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242752@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9893 Author: mvorisek ### Description Steps to reproduce: File structure: - ./ - current directory - ./php-8.1.12-nts-Win32-vs16-x64 - extracted from official Windows download - ./php-8.1.12-nts-Win32-vs16-x64\ext\php_xdebug.dll - downloaded from official xdebug website When I run .\php-8.1.12-nts-Win32-vs16-x64\php.exe -d xdebug.mode=coverage -d extension=ext/php_xdebug test.php I get: ``` Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 ... (xdebug is working, output from test.php code) ``` When I run .\php-8.1.12-nts-Win32-vs16-x64\php.exe -d xdebug.mode=coverage -d zend_extension=ext/php_xdebug.dll test.php I get: ``` Warning: Failed loading Zend extension 'ext/php_xdebug.dll' (tried: C:\php\ext\ext/php_xdebug.dll (The specified module could not be found), C:\php\ext\php_ext/php_xdebug.dll.dll (The specified module could not be found)) in Unknown on line 0 Fatal error: Uncaught Error: Call to undefined function xdebug_start_code_coverage() in C:\Users\mvorisek\Desktop\forks\cov-php81-debug\test.php:5 Stack trace: #0 {main} thrown in C:\Users\mvorisek\Desktop\forks\cov-php81-debug\test.php on line 5 ``` I would expect exactly the same extension discovery for extension and zend_extension. ### PHP Version PHP 8.1.12 NTS Win x64 ### Operating System Windows 10

« previous php.bugs (#242752) next »