gpt4 book ai didi

php - 找到可用的(未加载的)PHP 扩展

转载 作者:可可西里 更新时间:2023-11-01 12:35:42 27 4
gpt4 key购买 nike

我需要一种方法来找到所有可用的 PHP 扩展,无论它们是否已加载。我看了How do I see the extensions loaded by PHP?但它只解释了如何找到加载的扩展。我也想要一种方法来找到卸载的扩展。

从 php.ini 知道 extension_dir 我做了一个 ls/extension_dir/*.so 返回了 26 个条目。当我尝试使用 php -m 时,我得到了 57 个条目。怎么可能?

我如何知道可以加载哪些 PHP 扩展?我不想知道哪些已加载但哪些可加载

最佳答案

Keep in mind that some extensions may be build statically into PHP. You will see these listed as extensions in php.ini but you will not be able to disable them, and in most cases you will not see an extension= line referring to them in php.ini or an .so / .DLL files. Removing statically compiled extensions requires recompiling PHP itself, and in most cases this is hardly needed as most statically compiled extensions tend to include core functionality which rarely needs to be removed.

http://arr.gr/blog/2012/06/on-php-extensions/

感谢 Matteo Tassinari。

关于php - 找到可用的(未加载的)PHP 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12157584/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com