【发布时间】:2020-03-07 03:50:37
【问题描述】:
问题:
使用 tidy_parse_string() 返回:
调用未定义的函数
试过了:
搜索:
apt-cache search tidy
但我只在返回的列表中看到这个 php 扩展:
php5-tidy - php5 的整洁模块
如何安装 PHP 7.2 的模块?
我已尝试通过删除 ;:
在 fpm 7.2 文件夹中的 php ini 中启用该模块;扩展=整洁
但是没有指向扩展的路径,所以我猜它还没有安装。
线索: Tidy 自己的页面说您使用“配置选项”进行安装 - 我不知道这与 apt 安装的软件包有什么关系。
https://www.php.net/manual/en/tidy.installation.php
阐述:
这里列出了包:
https://packages.ubuntu.com/disco/php7.2-tidy
但在搜索 apt-get 时它不会显示,即使在更新列表后也是如此。只显示 php5 扩展?
【问题讨论】:
标签: php php-7 php-extension tidy