array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'wincache.win32build.building.php', 1 => 'コンパイルおよびビルド', ), 'up' => array ( 0 => 'wincache.win32build.php', 1 => 'Windows でのビルド', ), 'prev' => array ( 0 => 'wincache.win32build.prereq.php', 1 => '要件', ), 'next' => array ( 0 => 'wincache.win32build.verify.php', 1 => 'ビルドの検証', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/wincache/win32build.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
WinCache を Windows OS 上でコンパイル・ビルドする手順は次のとおりです。
PHP のビルドに使うコマンドプロンプトを開く
PHP ソースのルートフォルダに移動する
次のコマンドを実行する
cscript.exe win32\build\buildconf.js
次のコマンドを実行する
configure.bat --help
--enable-wincache
が含まれています。
次のコマンドを実行する
configure.js [all options used to build PHP] --enable-wincache
--enable-wincache
は、WinCache
拡張モジュールを正しくビルドするために必要な唯一の追加オプションです。
このオプションは、WinCache をビルドして PHP の dll にスタティックリンクします。
WinCache 拡張モジュールを単体の DLL とhしてビルドするには、オプション
--enable-wincache=shared
を指定します。
次のコマンドを実行する
nmake