Xdebug is not a zend IIS7 extension

I cannot load xdebug as a Zend extension because php.ini automatically puts the wrong term.

The message in phpinfo() is

XDEBUG NOT DOWNLOADED AS ZEND EXTENSION

I am using IIS 7.5 for Windows Server 2008 R2 Enterprise PHP 5.3.8 Zend Engine v2.3.0

My part of php.ini :

 [xdebug] zend_extension=php_xdebug-2.2.0-5.3-vc9-nts.dll xdebug.remote_enable=1 xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" 

Failed to register errors.

I need to activate each extension in IIS settings. When I restart IIS, php.ini updated with the line

 [PHP_XDEBUG-2.2.0-5.3-VC9-NTS] extension=php_xdebug-2.2.0-5.3-vc9-nts.dll 

Why is this?

+6
source share
1 answer

(Solved by the OP and responding to the editing question. Converted to the community wiki. See Unanswered Question, but resolved the problem in the comments (or expanded in the chat) )

OP wrote (a):

Now it works after changing the extension path to absolute. In any case, all two lines have been added, but phpinfo() now shows the full xdebug configuration.

The working part of php.ini :

 [PHP_XDEBUG-2.2.0-5.3-VC9-NTS] zend_extension="C:\Program Files (x86)\php\ext\php_xdebug-2.2.0-5.3-vc9-nts.dll" xdebug.remote_enable=1 xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" [PHP_XDEBUG-2.2.0-5.3-VC9-NTS] extension=php_xdebug-2.2.0-5.3-vc9-nts.dll 
0
source

Source: https://habr.com/ru/post/919523/


All Articles