在 W7 上运行,php5.3.5。
我已经下载并安装了 Zend 框架文件。现在我正在尝试运行此处推荐的 PHP 安装检查器,但它返回错误:
Ran PHP Installation Checker on 2012-08-27T13:06:37+00:00
PHP Extension Errors Tested
No errors found
Zend Framework Installation Tested
Errors
0 Exception thrown trying to access Zend/Loader.php
using 'use_include_path' = true.
Make sure you include Zend Framework in your
include_path which currently contains:
.;C:\php\pear
SSL Capabilities Errors Not tested
YouTube API Connectivity Not tested
Errors
Here are similar question to mine this question and this other
已经尝试过此解决方案和其他类似解决方案,但错误不断出现。
编辑 01:
使用这个和这个我试图包含路径但不工作。当我调用 aget_include_path()
它再次返回.;C:\php\pear
.
这是添加路径的php:
<?php
$path = '.C:\php\zend';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>
编辑02:
找到php.ini
,编辑和添加:include_path = ".;c:\php\pear;.;c:\php\lib\Zend"
根据谷歌开发者页面上的这个链接。错误仍然出现,但现在添加.;c:\php\lib\Zend
到路径中。