感谢 Kevin Horst,在我的 Win7 机器上进行了测试和工作!
解决方案: 只需下载托管在 Amazon AWS 上的静态编译版本,然后解压。
以下是一些输出php -i
:
phpinfo()
PHP Version => 5.4.0
System => Windows NT xxxx 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build Date => Mar 7 2012 14:17:27
Compiler => MSVC9 (Visual C++ 2008)
Architecture => x86
Configure Command => cscript /nologo configure.js "--enable-cli" "--enable-memcache=shared"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\Windows
Loaded Configuration File => C:\Users\xxxx\Downloads\UniServer\usr\local\php\php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,TS,VC9
PHP Extension Build => API20100525,TS,VC9
memcache
memcache support => enabled
Active persistent connections => 0
Version => 2.2.5
Revision => $Revision: 319585 $