Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用VC9编译PHP5.5时出错_Php_Apache_X86 - Fatal编程技术网

使用VC9编译PHP5.5时出错

使用VC9编译PHP5.5时出错,php,apache,x86,Php,Apache,X86,根据页面上的信息,我正在尝试编译PHP5.5以支持VC9-x86,我绝对需要这个版本 它应该工作,如页面中所述 我按照页面上的说明进行操作,但我收到了一些错误: ext\standard\info.c(502) : error C2065: 'PRODUCT_SERVER_FOUNDATION' : undeclared identifier ext\standard\info.c(502) : error C2051: case expression not constant ext\sta

根据页面上的信息,我正在尝试编译PHP5.5以支持VC9-x86,我绝对需要这个版本

它应该工作,如页面中所述

我按照页面上的说明进行操作,但我收到了一些错误:

ext\standard\info.c(502) : error C2065: 'PRODUCT_SERVER_FOUNDATION' : undeclared  identifier
ext\standard\info.c(502) : error C2051: case expression not constant
ext\standard\info.c(532) : error C2065: 'PRODUCT_STORAGE_EXPRESS_SERVER_CORE' : undeclared identifier
ext\standard\info.c(532) : error C2051: case expression not constant
ext\standard\info.c(535) : error C2065: 'PRODUCT_STORAGE_STANDARD_SERVER_CORE' :
 undeclared identifier
ext\standard\info.c(535) : error C2051: case expression not constant
ext\standard\info.c(538) : error C2065: 'PRODUCT_STORAGE_WORKGROUP_SERVER_CORE'
: undeclared identifier
ext\standard\info.c(538) : error C2051: case expression not constant
ext\standard\info.c(541) : error C2065: 'PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE'
 : undeclared identifier
ext\standard\info.c(541) : error C2051: case expression not constant
ext\standard\info.c(544) : error C2065: 'PRODUCT_STARTER_N' : undeclared identif
ier
ext\standard\info.c(544) : error C2051: case expression not constant
ext\standard\info.c(547) : error C2065: 'PRODUCT_PROFESSIONAL' : undeclared iden
tifier
ext\standard\info.c(547) : error C2051: case expression not constant
ext\standard\info.c(550) : error C2065: 'PRODUCT_PROFESSIONAL_N' : undeclared id
entifier
ext\standard\info.c(550) : error C2051: case expression not constant

我该怎么解决呢?

我终于找到了解决办法

报告的常数没有定义,原因很简单:SDK6.1不包括它们。 常量在文件C:\php sdk\phpdev\vc9\x86\php-5.5.30-src\ext\standard\winver.h中定义,但它们受始终存在的常量值的限制:

#ifndef PRODUCT_ULTIMATE
我将其更改为第一个缺少的常量:

#ifndef PRODUCT_STORAGE_EXPRESS_SERVER_CORE // SM PRODUCT_ULTIMATE
在plus中,我在下面几行中添加了一个缺少的值:

#define PRODUCT_STARTER_E                           0x00000042  //SM

通过这种方式,我可以编译php.exe和php.lib库。

我有完全相同的问题。。。经过一个又一个的艰难跋涉,终于到达了这一点。