XDebug is not loaded in PHP (Vista, Apache Module)

前端 未结 5 1735
庸人自扰
庸人自扰 2021-01-01 05:46

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         


        
相关标签:
5条回答
  • 2021-01-01 06:19

    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.

    0 讨论(0)
  • 2021-01-01 06:31

    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)

    0 讨论(0)
  • 2021-01-01 06:34

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

    0 讨论(0)
  • 2021-01-01 06:34

    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.

    0 讨论(0)
  • 2021-01-01 06:38

    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 ;)

    0 讨论(0)
提交回复
热议问题