zoukankan      html  css  js  c++  java
  • WAMP环境下(apache2.2.21+Php5.3.10)编写PHP扩展

    主要遇到的问题: 1,版本问题:VC9与VC6的问题 具体表现为:
    Warning
    PHP Startup: MeineExtension: Unable to initialize module
    Module compiled with build ID=API20090626,TS
    PHP compiled with build ID=API20090626,TS,VC9
    These options need to match
    解决方法:下载正确的php版本,用正确的编译器 php.net官方说:

    If you are using PHP with IIS you should use the VC9 versions of PHP VC6 Versions are compiled with the legacy Visual Studio 6 compiler

    所以如果你用apache+php的话,应该用vc6的版本;但如果你想用vc9的版本,像我用了php5.3.10,就要用vc9的IDE,如VS2008,VS2010, 另外,在文件头还要加上一句宏:
    #define PHP_COMPILER_ID "VC9"
    这个问题纠结了我很久!希望对你有用.. 2,编译问题: 编译中可能会出现 php_stream_transport.h 报错,加上这句话 typedef int socklen_t; 另外,该导入的库都得导入。
  • 相关阅读:
    C++中的动态内存管理
    Harbor镜像仓库搭建
    nexus私服搭建
    Tekton ACK安装
    容器监控实践,从入门到放弃
    Bitwarden_搭建密码服务器
    Jenkins-部署文档
    Mysql-基本的
    Zabbix添加-钉钉故障报警
    ZABBIX-4.4 yum安装
  • 原文地址:https://www.cnblogs.com/trying/p/2863726.html
Copyright © 2011-2022 走看看