如何检查Suhosin是否已安装? [英] How to check whether Suhosin is installed?

查看:96
本文介绍了如何检查Suhosin是否已安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Suhosin不熟悉(从未使用过),但是如果可能的话,我需要使用PHP检查是否已安装它.这是我正在编写的安装程序的一部分.谢谢.

I'm not familiar with Suhosin (never used it) but if possible I need to check using PHP whether it is installed. This is for part of an installer that I'm writing. Thanks.

推荐答案

要检测Suhosin扩展,请使用extension_loaded()不管它是动态加载还是静态编译:

To detect the Suhosin Extension use extension_loaded() no matter if it is dynamically loaded or statically compiled:

extension_loaded('suhosin');

要检测Suhosin补丁,请检查其是否存在:

To detect the Suhosin-Patch, check for the constant presence:

constant("SUHOSIN_PATCH");

这篇关于如何检查Suhosin是否已安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆