简体   繁体   English

在Lampp中使用Runkit_Sandbox

[英]Use Runkit_Sandbox in lampp

I want to use the sandboxing of the extension runkit . 我想使用扩展runkit的沙箱。 From README file 来自README文件

Sandboxing is ONLY AVAILABLE in PHP 5.1 (release version, or snapshot dated
after April 28th, 2005) when thread safety has been enabled.

The version of PHP in my lampp is 5.4.7 which should be OK but its Thread Safety is disabled. 我的lampp中的PHP版本是5.4.7,应该可以,但是禁用了Thread Safety性。 From phpinfo() we can see the runkit is installed but its Sandbox Support is disabled or unavailable. phpinfo()我们可以看到已安装runkit ,但其Sandbox Support已禁用或不可用。 So when I try to use the Runkit_Sandbox class, an error came out 因此,当我尝试使用Runkit_Sandbox类时,出现了错误

Fatal error: Class 'Runkit_Sandbox' not found 

I don't really what to do now.. Is it possible to use Runkit_Sandbox class in my lampp? 我现在真的不做什么。.是否可以在Runkit_Sandbox中使用Runkit_Sandbox类?

The master branch of http://github.com/zenovich/runkit is compatible with all versions of PHP. http://github.com/zenovich/runkit的master分支与所有版本的PHP兼容。 Sandboxing only works if thread safety is enabled. 仅在启用线程安全的情况下,沙箱才起作用。 So you should recompile your PHP after configuring it with flag --enable-maintainer-zts to use Runkit_Sandbox class. 因此,在使用标志--enable-maintainer-zts将其配置为使用Runkit_Sandbox类后,应重新编译PHP。 After that you should use Runkit compiled from source. 之后,您应该使用从源代码编译的Runkit。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM