Phalcon:无法初始化使用内部版本windows 7 x64 Zend Server编译的模块模块


Phalcon: Unable to initialize module Module compiled with build windows 7 x64 Zend Server

我正试图在运行Zend Server的Windows 7上安装Phalcon模块。

一些有用的信息:php-v

 [30.09.2014 15:02:32 p12888/t2672 NOTICE] Successfully established connection the database
 PHP 5.5.13 (cli) (built: Jun 26 2014 12:03:16)
 Copyright (c) 1997-2014 The PHP Group
 Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
  with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
  with Zend Extension Manager v6.0.0, Copyright (c) 2003-2014, by Zend Technogies
  with Zend Data Cache v6.0.0, Copyright (c) 2004-2014, by Zend Technologies
  [loaded] [licensed] [disabled]
- with Zend Job Queue v6.0.0, Copyright (c) 2004-2014, by Zend Technologies
[loaded] [not licensed] [disabled]
- with Zend Session Clustering v6.0.0, Copyright (c) 2004-2014, by Zend Tecnologies [loaded][licensed] [disabled]
- with Zend Utils v6.0.0, Copyright (c) 2004-2014, by Zend Technologies [licensed] [licensed] [enabled]
- with Zend Code Tracing v6.0.0, Copyright (c) 2009-2014, by Zend Technologies [loaded] [licensed] [enabled]
- with Zend Server Z-Ray v7.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled]
- with Zend Monitor v6.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [disabled]
- with Zend Debugger v6.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled]
- with Zend Page Cache v6.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled]
- with Zend Monitor UI v6.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled]

操作系统:Windows 7 X64

我正在从下载DLLhttp://phalconphp.com/en/download/windows和https://github.com/phalcon/cphalcon/tree/master

Zend服务器安装在x86程序文件中,我已经尝试安装dll。我从日志中得到的是:

[30-Sep-2014 15:35:42] PHP Warning:  PHP Startup: phalcon: Unable to initialize module
Module compiled with build ID=API20121212,NTS,VC11
PHP    compiled with build ID=API20121212,NTS,VC9
These options need to match
 in Unknown on line 0
[30-Sep-2014 15:35:44] PHP Warning:  PHP Startup: phalcon: Unable to initialize module
Module compiled with build ID=API20121212,NTS,VC11
PHP    compiled with build ID=API20121212,NTS,VC9
These options need to match
 in Unknown on line 0
[30-Sep-2014 15:35:46] PHP Warning:  PHP Startup: phalcon: Unable to initialize module
Module compiled with build ID=API20121212,NTS,VC11
PHP    compiled with build ID=API20121212,NTS,VC9
These options need to match in Unknown on line 0
[30-Sep-2014 15:37:08] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:'Program Files (x86)'Zend'ZendServer'lib'phpext'php_phalcon.dll' - The specified module could not be found.
 in Unknown on line 0
[30-Sep-2014 15:37:10] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:'Program Files (x86)'Zend'ZendServer'lib'phpext'php_phalcon.dll' - The specified module could not be found.
 in Unknown on line 0
  [30-Sep-2014 15:38:28] PHP Warning:  PHP Startup: phalcon: Unable to initialize module
Module compiled with build ID=API20121212,NTS,VC11
PHP    compiled with build ID=API20121212,NTS,VC9
 These options need to match in Unknown on line 0
 [30-Sep-2014 15:38:30] PHP Warning:  PHP Startup: phalcon: Unable to initialize module
Module compiled with build ID=API20121212,NTS,VC11
PHP    compiled with build ID=API20121212,NTS,VC9
These options need to match
 in Unknown on line 0
 [30-Sep-2014 15:38:32] PHP Warning:  PHP Startup: phalcon: Unable to initialize module
Module compiled with build ID=API20121212,NTS,VC11
PHP    compiled with build ID=API20121212,NTS,VC9
These options need to match
 in Unknown on line 0

我在尝试作为PHP模块安装的不同DLL中遇到了这些错误。你有什么线索可以告诉我如何在Windows上安装它吗?

我已经安装了一些模块,例如MONGO,它很有效,但我在phalcon 上很吃力

当您为windows使用预编译的PHP扩展时,您必须匹配API编号(PHP版本)、线程安全打开或关闭(ZTS或NTS)以及用于编译的Visual Studio版本

PHP编译版本ID=API20121212,NTS,VC9

这些信息告诉您正在使用的zend服务器版本的PHP是用VC9编译的,线程安全关闭(NTS),并且需要20121212版本的PHP内部API

使用内部版本ID编译的模块=API20121212,NTS,VC11

这些信息告诉您下载的phalcon扩展是用VC11编译的,但API和线程安全设置与当前的PHP安装相同。但是,由于这三件事中有一件不匹配,扩展将无法正确加载。

不幸的是,phalcon没有为使用VC9构建的PHP 5.5、NTS提供预编译版本的扩展,因此您要么需要构建自己的扩展,要么要求维护人员添加该版本的

或者为您的PHP 使用Zend Server以外的东西