略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Compiling and building

2024-12-22

Compiling and building

The following steps describe how to compile and build WinCache on Windows OS:

  1. Open a command prompt which is used to build PHP

  2. Go to the root folder where PHP sources are present

  3. Run the command:

    cscript.exe win32\build\buildconf.js
  4. Run the command:

    configure.bat --help
    The output will contain a new flag --enable-wincache.
  5. Run the command:

    configure.js [all options used to build PHP] --enable-wincache
    --enable-wincache is the only extra option which is required to ensure that WinCache extension gets built properly. This option will build WinCache and will statically link it with PHP dll. To build WinCache extension as a stand-alone DLL use the option --enable-wincache=shared.
  6. Run the command:

    nmake
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/wincache.win32build.building.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3