PHP5.3.0中原来不能用zend_extension_ts这种扩展方式实现了, 在网上找了很久,一直以为自已弄错了, 没有到在官方的文档中找到了。 Precompiled Modules There are a few precompiled modules for Windows, they are all for the non-debug version of PHP. See the links on the right side. Installing the precompiled modules is easy. Just place them in a directory, and add the following line to php.ini: (don't forget to change the path and filename to the correct one — but make sure you use the full path) zend_extension_ts="c:/php/modules/php_xdebug-4.4.1-2.0.5.dll" From PHP 5.3 onwards, you need to use zend_extension and not zend_extension_ts. Compiling You compile Xdebug separately from the rest of PHP. Note, however, that you need access to the scripts 'phpize' and 'php-config'. If your system does not have 'phpize' and 'php-config', you will need to compile and install PHP from a source tarball first, as these script are by-products of the PHP compilation and installation processes. (Debian users can install the required tools with apt-get install php4-dev, or apt-get install php5-dev). It is important that the source version matches the installed version as there are slight, but important, differences between PHP versions. Once you have access to 'phpize' and 'php-config', do the following:    1. Unpack the tarball: tar -xzf xdebug-2.0.5.tgz. Note that you do not need to unpack the tarball inside the PHP source code tree. Xdebug is compiled separately, all by itself, as stated above.    2. cd xdebug-2.0.5    3. Run phpize: phpize (or /path/to/phpize if phpize is not in your path). See in the table below which version numbers it should show for different PHP versions. Make sure you use the phpize that belongs to the PHP version that you want to use Xdebug with.    4. ./configure --enable-xdebug (or: ./configure --enable-xdebug --with-php-config=/path/to/php-config if php-config is not in your path).       If this fails with something like:       ../configure: line 1960: syntax error near unexpected token       `PHP_NEW_EXTENSION(xdebug,'       ../configure: line 1960: `  PHP_NEW_EXTENSION(xdebug, xdebug.c       xdebug_code_coverage.c xdebug_com.c xdebug_handler_gdb.c       xdebug_handler_php3.c xdebug_handlers.c xdebug_llist.c xdebug_hash.c       xdebug_profiler.c xdebug_superglobals.c xdebug_var.c usefulstuff.c,       $ext_shared)'       then it means that you do not meet the PHP 4.3.x version requirement for Xdebug.       Another problem that might occur is:       configure: line 1145: PHP_INIT_BUILD_SYSTEM: command not found       configure: line 1151: syntax error near unexpected token `config.nice'       configure: line 1151: `PHP_CONFIG_NICE(config.nice)'       You will need to upgrade your autotools (autoconf, automake and libtool) or install the known working versions: autoconf-2.13, automake-1.5 and libtool-1.4.3.    5. make    6. cp modules/xdebug.so /to/wherever/you/want/it Configure PHP to Use Xdebug    1. add the following line to php.ini: zend_extension="/wherever/you/put/it/xdebug.so" (for non-threaded use of PHP, for example the CLI, CGI or Apache 1.3 module) or: zend_extension_ts="/wherever/you/put/it/xdebug.so" (for threaded usage of PHP, for example the Apache 2 work MPM or the the ISAPI module). Note: In case you compiled PHP yourself and used --enable-debug you would have to use zend_extension_debug=. From PHP 5.3 onwards, you always need to use zend_extension and not zend_extension_ts.    2. Restart your webserver.    3. Write a PHP page that calls 'phpinfo()' Load it in a browser and look for the info on the Xdebug module. If you see it next to the Zend logo, you have been successful! You can also use 'php -m' if you have a command line version of PHP, it lists all loaded modules. Xdebug should appear twice there (once under 'PHP Modules' and once under 'Zend Modules'). Compatibility Xdebug does not work together with the Zend Optimizer or any other Zend extension (DBG, APD etc). This is due to compatibility problems with those modules. We will be working on figuring out what the problems are, and of course try to fix those. phpize Output Table PHP Version: PHP Api Version: Zend Module Api No: Zend Extension Api No: Recommended version: 4.4.x 20020918 20020429 20050606 2.0.5 5.1.x 20041225 20050922 220051025 2.0.5 5.2.x 20041225 20060613 220060519 2.0.5 Debugclient Installation Unpack the Xdebug source tarball and issue the following commands: $ cd debugclient $ ./configure --with-libedit $ make # make install This will install the debugclient binary in /usr/local/bin unless you don't have libedit installed on your system. You can either install it, or leave out the '--with-libedit' option to configure. Debian 'unstable' users can install the library with apt-get install libedit-dev libedit2. If the configure script can not find libedit and you are sure you have (and it's headers) installed correctly and you get link errors like the following in your configure.log: /usr/lib64/libedit.so: undefined reference to `tgetnum' /usr/lib64/libedit.so: undefined reference to `tgoto' /usr/lib64/libedit.so: undefined reference to `tgetflag' /usr/lib64/libedit.so: undefined reference to `tputs' /usr/lib64/libedit.so: undefined reference to `tgetent' /usr/lib64/libedit.so: undefined reference to `tgetstr' collect2: ld returned 1 exit status you need to change your configure command to: $ LDFLAGS=-lncurses ./configure --with-libedit

php4.3.x 5.2.x,XDEBUG for PHP 5.3.0相关推荐

  1. php Xdebug的安装与使用详解

    本篇文章是对php Xdebug的安装与使用进行了详细的分析介绍,需要的朋友参考下 为什么需要Debugger? 很多PHP程序员调试使用echo.print_r().var_dump().print ...

  2. phpstorm xdebug本地调试断点不生效_phpstudy+phpstrom实现断点

    前言 java实现断点很容易,直接debug模式启动就行.但是PHP不行,非常非常的麻烦,反正我是感觉很麻烦. 1.安装php插件XDebug组件 phpstudy默认带了,很方便.不用再下了 装好之 ...

  3. 【搜遍互联网,集百家之长】环境配置从入门到放弃之Mac环境下,安装XAMPP,给phpstorm安装Xdebug调试工具...

    前提 刚从Windows转到OS X,工作需要给phpstorm安装断点调试工具xdebug,一开始没当回事,心想不就个插件吗,上网看看文档还不是分分钟搞定,没想到就是噩梦的开始.整整两天,翻遍谷歌和 ...

  4. 自己动手搭建Nginx+memcache+xdebug+php运行环境绿色版 For windows版

    Nginx比apache要好,优点很多,随便去搜寻引擎找一下就能找到一大把资料,这不是我们讨论的重点,我们的重点是自己做一个运行组合!      為何我不從網上下載一個別人已經封裝好的現成的版本呢?因 ...

  5. php性能优化分析工具XDebug 大型网站调试工具

    一.安装配置 1.下载PHP的XDebug扩展,网址:http://xdebug.org/ 2.在Linux下编译安装XDebug 引用 tar -xzf xdebug-2.0.0RC3.gz cd ...

  6. php xdebug 中文手册,Xdebug文档(四)函数跟踪

    Xdebug能让你把所有函数调用,包括参数和返回值以不同的格式记录到文件中. 这些号称"函数跟踪"功能能帮助你面对一个新应用程序,亦或者在程序运行时你想弄清楚它在做什么.函数跟踪功 ...

  7. 使用zend studio配置Xdebug调试PHP教程

    之前我介绍了PHP开发工具Zend Studio7入门使用教程,其实使用zend studio调试PHP非常方便,zend studio默认支持调试工具zend debugger也允许使用第三方调试工 ...

  8. vscode php 不进断点,php – Docker和XDebug没有读取断点VSCode

    在过去的6个月中,我一直在使用XDebug和PHP Version 7.0.*在远程调试Docker容器的MAC上. 我正在运行一个旧版本的docker,它使用VirtualBox到VM for do ...

  9. PHPstrom + xdebug + postman断点调试代码 php谷歌浏览器代码断点调试

    最近在提升PHP开发效率 ,var_dump 和 echo 这种调试方式只适合新手 想看谷歌浏览器调试的朋友先跟着下面配置搞好,跳过postman,直接看谷歌浏览器 postman和谷歌浏览器 配置x ...

最新文章

  1. 联邦学习应用思考:需求还是方法?
  2. mongodb 新增字段
  3. 第五期 RHCE远程班 12月1日开课(周末班)
  4. 一种使用蒸汽眼罩保养的方法
  5. Oracle八大性能视图之v$sort_usage_temp
  6. 敏捷武士:看敏捷高手交付卓越软件pdf
  7. android驱动代码,GitHub - rumengsuifeng/AndroidDrivers: Android驱动的代码
  8. iOS - 集成SDK问题
  9. 硅谷Spring项目组专家教你利用Spring Cloud构建微服务
  10. springsecurity登出的配置信息以及登出的认证效果
  11. 引导滤波 Guided Image Filtering
  12. 网页滚动截屏怎么截长图
  13. 看云|专注于文档在线创作、协作、分享和托管
  14. f7功能键使用计算机,F1到F12都代表什么 电脑键盘上F1-F12键的用法
  15. Window10主硬盘更换及系统重装
  16. Docker 启动Redis
  17. 在Ubuntu终端使用mkdir创建文件夹后Xftp不能上传文件到文件夹中的问题解决方法
  18. 丁鹿学堂:前端http面试总结,状态码详解
  19. 素描教程石膏像明暗素描技法
  20. 用简单命令查看Windows上USB盘使用记录

热门文章

  1. mac安装python3.7_MAC 安装Python3.7
  2. 2021年4月Oracle数据库补丁分析报告
  3. 源码编译安装PostgresSQL(11.5)
  4. 读者福利:复盘2018上半年精选文章,还有礼品等着你!
  5. 视镜:华为云媒体质量管理最新实践
  6. 一文带你解读Volcano架构设计与原理
  7. 从定义到AST及其遍历方式,一文带你搞懂Antlr4
  8. 耦合层:撮合物联网的理论与实践牵手的“月老”
  9. 为机场按上一双“慧眼”消灭飞机的“黑色十分钟”
  10. 【奇技淫巧】在安卓模拟器中安装busybox