<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 5.3 靜態編譯 # 5.3 靜態編譯 我們檢查一下PHP語言中get\_loaded\_extensions()函數的輸出,會發現有一些擴展并沒有php.ini文件中調用,而它們確實也已經加載到PHP里去了,可以讓我們在PHP語言中使用,如standard、Reflection、Core等。它們便是靜態編譯的,它們沒有被編譯成so或者dll文件供PHP動態調用,而是直接和PHP主程序編譯到一起。 ### 在\*nix上執行靜態編譯 現在,先讓我們執行一下PHP源碼根目錄下的./configure --help命令。會發現輸出信息并沒有包含我們的擴展,這是因為這個configure腳本生成的時候,我們的擴展還沒有編寫呢。(這個configure是PHP官方分發的。),所以首先我們需要使用buildconf命令生成新的configure腳本。 $ ./buildconf --force If you're using a production release of PHP to do development against, you'll find that ./buildconf by itself doesn't actually work. In this case you'll need to issue: ./buildconf force to bypass some minor protection built into the ./configure command. 現在當我們再執行./configure --help的時候,便會發現walu擴展的信息已經出現了。現在我們只需要重新走一遍PHP的編譯過程,便可以把我們的擴展以靜態編譯的方式加入到PHP主程序中了。哦,千萬不要忘記使用--enable-walu參數開啟我們的擴展。 當然,對于我們學習如何開發PHP擴展來講,靜態編譯可不是一個好主意,因為如果采用靜態編譯的方式,只要我們的擴展做了改動,便需要重新編譯整個PHP才行,這個過程太痛苦了。還是用前一節的方式吧。但是這種方式有利于提高性能,所以如果我們是在部署生產環境,則可以考慮!### Building Statically Under Windows Regenerating the configure.js script for Windows follows the same pattern as regenerating the ./configure script for \*nix. Navigate to the root of the PHP source tree and reissue buildconf.bat as you did in Chapter 4. The PHP build system will scan for config.w32 files, including the one you just made for ext/sample, and generate a new configure.js script with which to build a static php binary. ## links - 5.2 [編譯我們的擴展](5.2.html) - 5.4 [編寫函數](5.4.html)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看