Php Mac OS X Yosemite中的SDO

Php Mac OS X Yosemite中的SDO,php,macos,osx-yosemite,sdo,Php,Macos,Osx Yosemite,Sdo,通过PECL安装SCA_SDO时不断出现错误 -MacBook-Pro:SCA_SDO-1.2.4 roland$ sudo pecl install SCA_SDO downloading SCA_SDO-1.2.4.tgz ... Starting to download SCA_SDO-1.2.4.tgz (576,531 bytes) ..........................................................................

通过PECL安装SCA_SDO时不断出现错误

   -MacBook-Pro:SCA_SDO-1.2.4 roland$ sudo pecl install SCA_SDO
downloading SCA_SDO-1.2.4.tgz ...
Starting to download SCA_SDO-1.2.4.tgz (576,531 bytes)
..............................................................................................done: 576,531 bytes
194 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/local/Cellar/php55/5.5.22/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed
然后,当我尝试手动下载和安装时,我得到以下结果

/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:310:1: error: unknown type
      name 'function_entry'
function_entry sdo_model_propertyimpl_methods[] = {
^
/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:325:8: warning: duplicate
      'static' declaration specifier [-Wduplicate-decl-specifier]
static ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_model_reflectiondataobject_exp...
       ^
/usr/local/Cellar/php55/5.5.22/include/php/Zend/zend_API.h:107:2: note: 
      expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
        static const zend_arg_info name[] = ...
        ^
/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:330:1: error: unknown type
      name 'function_entry'
function_entry sdo_model_reflectiondataobject_methods[] = {
^
/Users/roland/Documents/sca_sdo/SCA_SDO-1.2.4/sdo.cpp:352:1: error: unknown type
      name 'function_entry'
function_entry sdo_exception_methods[] = {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
15 warnings and 20 errors generated.
有没有关于为什么这不会被编译的想法

将“function_entry”替换为“zend_function_entry”就足够进行一个简单的测试了,我使用这里发布的代码在OS X 10.9.5和PHP5.4.30上运行该测试:

上的评论还建议在源代码中将“pval”替换为“zval”,但是如果在扩展中使用复杂的数据类型,那么整个过程可能会更复杂一些