zend调试出错,浏览器访问正常

我也遇到了这个问题,一直不知道怎么解决,直到今天才找到答案。

Zend 调试消息:
调试错误:D:\webpage\lolor.php 行 3 – Call to undefined function imagecreatetruecolor()

在PHP.INI中我已经设置了extension=php_gd2.dll
浏览器中正常,zend 调试不正常。

出现这样的问题,肯定是zend配置的问题。

zend 安装目录下 \bin\php5\ 下的php.ini 文件包含了一些配置信息。

extension_dir=d:\php5\ext
指向你php dll的存放目录

extension=php_gd2.dll
添加引入gd扩展

重启ZEND, 这样就可以解决这个问题了。

如果为了方便,可以把php.ini中所有加载的dll,再这里再写一遍。

此条目发表在 服务器&PC, 程序 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>