<small id='YHFWX'></small><noframes id='YHFWX'>

      <legend id='YHFWX'><style id='YHFWX'><dir id='YHFWX'><q id='YHFWX'></q></dir></style></legend>
      <tfoot id='YHFWX'></tfoot>
    1. <i id='YHFWX'><tr id='YHFWX'><dt id='YHFWX'><q id='YHFWX'><span id='YHFWX'><b id='YHFWX'><form id='YHFWX'><ins id='YHFWX'></ins><ul id='YHFWX'></ul><sub id='YHFWX'></sub></form><legend id='YHFWX'></legend><bdo id='YHFWX'><pre id='YHFWX'><center id='YHFWX'></center></pre></bdo></b><th id='YHFWX'></th></span></q></dt></tr></i><div id='YHFWX'><tfoot id='YHFWX'></tfoot><dl id='YHFWX'><fieldset id='YHFWX'></fieldset></dl></div>
      • <bdo id='YHFWX'></bdo><ul id='YHFWX'></ul>

      如何将适用于 Windows 的 PHP 5.3 扩展编译为 DLL?

      How do I compile an extension for PHP 5.3 for windows as a DLL?(如何将适用于 Windows 的 PHP 5.3 扩展编译为 DLL?)

        <tfoot id='9Lt5Y'></tfoot>
            <tbody id='9Lt5Y'></tbody>
        • <small id='9Lt5Y'></small><noframes id='9Lt5Y'>

              <legend id='9Lt5Y'><style id='9Lt5Y'><dir id='9Lt5Y'><q id='9Lt5Y'></q></dir></style></legend>
              <i id='9Lt5Y'><tr id='9Lt5Y'><dt id='9Lt5Y'><q id='9Lt5Y'><span id='9Lt5Y'><b id='9Lt5Y'><form id='9Lt5Y'><ins id='9Lt5Y'></ins><ul id='9Lt5Y'></ul><sub id='9Lt5Y'></sub></form><legend id='9Lt5Y'></legend><bdo id='9Lt5Y'><pre id='9Lt5Y'><center id='9Lt5Y'></center></pre></bdo></b><th id='9Lt5Y'></th></span></q></dt></tr></i><div id='9Lt5Y'><tfoot id='9Lt5Y'></tfoot><dl id='9Lt5Y'><fieldset id='9Lt5Y'></fieldset></dl></div>
                <bdo id='9Lt5Y'></bdo><ul id='9Lt5Y'></ul>
                本文介绍了如何将适用于 Windows 的 PHP 5.3 扩展编译为 DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我目前正在重写一个最初为 PHP 4.2.2 编写的 PHP 扩展. 我的问题是让构建/编译过程生成一个 .dll 而不是将扩展编译到 PHP 核心.环境是windows server 2003,我用的是Visual Studio 2008.

                I'm currently rewriting a PHP Extension that was originally written for PHP 4.2.2. My issue is having the build/compile process generate a .dll instead of compiling the extension into the PHP core. The environment is windows server 2003. I'm using Visual Studio 2008.

                我使用EXT_SKEL脚本生成框架,可以成功将扩展编译到php核心中.我正在尝试将其编译为 .dll 以便我可以轻松地将其分发给我的客户.任何人都可以指出我如何告诉 PHP 5.3 构建过程的正确方向,我想将我的扩展编译为 .dll 而不是静态地编译成 PHP 本身?

                I used the EXT_SKEL script to generate the framework, and I can succesfully compile the extension into the php core. I'm trying to instead compile it as a .dll so I can easily distribute it to my clients. Can anyone point me in the right direction for how to tell the PHP 5.3 build process that i'd like to compile my extension as a .dll instead of staticly into PHP itself?

                为了构建我运行的扩展框架:

                To build the extension's framework I run:

                1. php.exe ext_skel_win32.php --extname=myextension --proto=myprototypefile.dat
                2. 修改了 config.w32 以取消对ARG_ENABLE"行的注释并启用默认值
                3. buildconf.bat
                4. cscript/nologo configure.js
                5. nmake

                我确认我可以从 PHP 中运行扩展的方法,但是它不会生成可分发的 .dll.相反,它将方法编译为 PHP 二进制文件.有人能指出我正确的方向吗?

                I confirm that I can run the extension's methods from within PHP, however it does not produce a distributable .dll. instead it compiles the methods into the PHP binary. Can anyone point me in the right direction?

                推荐答案

                尝试

                configure.js --enable-myextension=shared
                

                也可能是

                configure.js --with-myextension=shared
                

                这篇关于如何将适用于 Windows 的 PHP 5.3 扩展编译为 DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                <legend id='YrGwz'><style id='YrGwz'><dir id='YrGwz'><q id='YrGwz'></q></dir></style></legend>

                    <tbody id='YrGwz'></tbody>
                      <bdo id='YrGwz'></bdo><ul id='YrGwz'></ul>
                        <tfoot id='YrGwz'></tfoot>

                        <small id='YrGwz'></small><noframes id='YrGwz'>

                        • <i id='YrGwz'><tr id='YrGwz'><dt id='YrGwz'><q id='YrGwz'><span id='YrGwz'><b id='YrGwz'><form id='YrGwz'><ins id='YrGwz'></ins><ul id='YrGwz'></ul><sub id='YrGwz'></sub></form><legend id='YrGwz'></legend><bdo id='YrGwz'><pre id='YrGwz'><center id='YrGwz'></center></pre></bdo></b><th id='YrGwz'></th></span></q></dt></tr></i><div id='YrGwz'><tfoot id='YrGwz'></tfoot><dl id='YrGwz'><fieldset id='YrGwz'></fieldset></dl></div>