3

I downloaded php_xdebug-2.0.5-5.3-vc9.dll, added at the end of PHP.ini the following line:

zend_extension_ts="C:/Program Files/php5/ext/php_xdebug-2.0.5-5.3-vc9.dll"

When I use phpinfo(), xdebug is not loaded.

When I run command "php.exe -m", it not loaded as well.

How can this be resolved?

My configuration: PHP 5.3.1, Apache 2.2.14 with Apache Module, OS: Windows Vista Both php and xdebug are thread safe.

This is somewhat similar with: Apache not loading Xdebug, but does when started from the Command Line

EDIT:

I use VC6 dll and fixed configuration:

zend_extension="C:/Program Files/php5/ext/php_xdebug-2.0.5-5.3-vc6.dll"

Still can not find xdebug in phpinfo() output.

5 Answers 5

7

zend_extension_ts is deprecated on >5.3. Try it with zend_extension instead.

1
  • This worked for me, even though the PHP installed (along with XAMPP is thread safe one) - VC11 X86 32bit thread safe. Strange Oct 29, 2020 at 17:39
4

use zend_extension instead of zend_extension_ts

and look carefuly "Compiler" , "Thread Safety" , "Architecture" and PHP Version parameters in phpinfo()

example my php info say

PHP Version 5.3.1

Compiler MSVC6 (Visual C++ 6.0)

Architecture x86

Thread Safety enabled

so i used Xdebug 2.1.0 / 5.3 VC6 (32 bit)

1

You should probably not use the VC9 version, but the VC6.

For more informations, see the block "Which version do I choose?" in the left-sidebar of http://windows.php.net/ which states (quoting) :

If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP

If you are using PHP with IIS you should use the VC9 versions of PHP

Do NOT use VC9 version with apache.org binaries


Also, quoting the Installation page of Xdebug's documentation :

From PHP 5.3 onwards, you always need to use zend_extension and not zend_extension_ts.

2
  • I used php 5.3.1 by VC9. Now I tried to set up php 5.3.2 by VC6 and apache crashes on startup. PHP 5.3.1 is not available for download any more, strange! I tried dll for VC6 only but it does not help...
    – sergtk
    Mar 8, 2010 at 20:09
  • From reading the release notes, it appears that Xdebug 2.0.5 has some compatibility issues with PHP 5.3. I realize 2.1.0 is still in beta, but you might try it to see if it fixes whatever is causing the crashing. Mar 8, 2010 at 20:36
1

I have the exact same problem on Windows 7 too. It didn't work for me but perhaps for you it does. Xdebug has a special service page which helps you find out which version to download and what steps to take: http://www.xdebug.org/find-binary.php.

Following this didn't work for me unfortunatly. When I perform 'php -m' xdebug does not appear in the loaded modules list.

1
  • 1
    I suspect the latest xdebug is not working with PHP 5.3.5 - have tried everything but can't get it working...
    – Joe Niland
    Mar 2, 2011 at 3:04
1

perform php --ini to check witch config file is loaded.
if you have something like this :

Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)

Just copy your php.ini in windows directory ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.