简体   繁体   English

如何禁用PHP中的已编译扩展

[英]How can I disable a compiled in extension in PHP

My home system has a version of PHP compiled with the SOAP extension. 我的家庭系统有一个用SOAP扩展编译的PHP版本。 The live system has a version of PHP without the SOAP extension, and most of the scripts rely on the NuSOAP library quite heavily. 实时系统具有一个不带SOAP扩展名的PHP版本,并且大多数脚本都非常依赖NuSOAP库。 The fact that NuSOAP and the SOAP extension use the same names for their classes is a terrible headache. NuSOAP和SOAP扩展在其类中使用相同的名称这一事实令人头痛。

How can I disable the SOAP extension on my home system without doing a reinstall / recompile? 如何在不进行重新安装/重新编译的情况下禁用家庭系统上的SOAP扩展? It's compiled in, and not enabled by a extension directive in a ini file. 它是在ini文件中编译的,而未由extension指令启用。

it's an extension, so you can disable it in php.ini . 它是一个扩展,因此您可以在php.ini禁用它。 Just outcomment the line. 刚胜过这条线。 Remember to restart Apache afterwards. 请记住,之后再重新启动Apache。

I have found nusoap to be rather buggy, so upgrading to native soap should be a priority. 我发现nusoap有很多问题,因此应优先升级到天然肥皂。 If this isn't immediately possible, it would be a good idea to switch to nusoap-for-php5 , since it allows you to run both the native soap extension and nusoap alongside. 如果无法立即实现,那么最好切换到nusoap-for-php5 ,因为它允许您同时运行本机soap扩展和nusoap。 You can then implement new code against native soap, while still using nusoap for legacy code. 然后,您可以针对本机肥皂实施新代码,同时仍将nusoap用于旧代码。

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

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