在哪里可以获取PHP 5.3+的Runkit DLL扩展? [英] Where can I get runkit DLL extensions for PHP 5.3+?
问题描述
这是一个快速的问题:在哪里可以获得5.3+版的PHP Runkit扩展?手册:
That is a quick question: Where can I get PHP's runkit extension for version 5.3+? Manual for it:
http://php.net/manual/en/book.runkit.php
我正在寻找DLL版本,因为我试图在Windows上使用它.我已经搜索了snaps.php.net,对其进行了Google搜索,但是没有运气.
I am searching for DLL version, as I am trying to play with it on Windows. I've searched snaps.php.net, Googled it, but no luck.
您可以将我指向正确的位置还是将其上传到某个地方?
推荐答案
来自 Runkit:安装
此PECL扩展的DLL当前不可用.另请参见在Windows上构建的部分.
您必须自己编译DLL.
You have to compile the DLL yourself.
另请参见 https://hakre.wordpress. com/2010/01/12/pecl-binaries-on-windows/
另一种选择是使用 http://antecedent.github.io/patchwork >
Another option would be to use http://antecedent.github.io/patchwork
Patchwork是一个PHP库,可以在运行时重新定义用户定义的函数和方法,以纯PHP 5.3代码轻松地复制功能
runkit_function_redefine
,除其他外,该函数使您可以替换静态和私有方法.加上测试双打.
Patchwork is a PHP library that makes it possible to redefine user-defined functions and methods at runtime, loosely replicating the functionality
runkit_function_redefine
in pure PHP 5.3 code, which, among other things, enables you to replace static and private methods with test doubles.
这篇关于在哪里可以获取PHP 5.3+的Runkit DLL扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!