PHP Warning: PHP Startup: oci8: Unable to initialize module Module compiled with module API=20050922 PHP compiled with module API=20131226 These options need to match 模块是不是太旧了。。
gd 存在隐患又怎么样,如果你的系统一定要 5.1 才能跑,然后 5.1 没维护了,那就是没维护了,没辙。 PHP 5.3 5.4 5.5 5.6 7.0 7.1 7.2,都是不同的版本,跨版本升级都可能会崩,不要想太多了。 你要升级,也应该先从 5.3 5.4 开始试,一次升五六个版本是不是太激进了? 关于 OCI8,我帮你去官网查了资料(为什么不自己查下呢?) http://php.net/manual/zh/oci8.requirements.php The OCI8 1.4 extension is included with PHP 5.3, PHP 5.4 and PHP 5.5. A newer OCI8 2.0 version is available only from » PECL. 够清楚了吧,如果你的程序依赖 1.4,那就只能用 5.5,再高是不支持的。如果 2.x 能用,那就去 PECL 下扩展包来装。