【发布时间】:2016-05-25 04:42:17
【问题描述】:
我最近将我的 VPS PHP 版本升级到 7.0.3,一切似乎都运行良好,包括 php -v,它显示:
(我知道我收到了一些警告,但应该不是什么严重的问题)
Failed loading /usr/local/lib/ioncube/ioncube_loader_lin_5.3.so: /usr/local/lib/ioncube/ioncube_loader_lin_5.3.so: undefined symbol: execute
PHP Warning: PHP Startup: suhosin: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20151012
These options need to match
in Unknown on line 0
PHP 7.0.3 (cli) (built: Feb 14 2016 00:24:25) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
我使用的是directadmin,所以我在public_html 中创建了一个文件index.php,这是它的内容:
<?php
error_reporting(E_ALL);
echo md5("sometext");
phpinfo();
?>
输出只有:
a29e90948f4eee52168fab5fa9cfbcf8
为什么md5 和echo 工作但phpinfo 不工作???
我在 Centos 上使用 PHP 7.0.3 和 Apache (httpd) 2.4.9
【问题讨论】: