php7.2和oci8冲突

时间:2018-10-24 16:15:48

标签: php linux apache centos7

从php5.4 oci8将服务器迁移到php7.2后,无法正常工作。 升级步骤: 1.删​​除PHP包 2.安装php72u-common +一些额外功能。

结果:

PHP Warning:  PHP Startup: Unable to load dynamic library 'oci8.so' (tried: /usr/lib64/php/modules/oci8.so (/usr/lib64/php/modules/oci8.so: undefined symbol: _zend_list_delete), /usr/lib64/php/modules/oci8.so.so (/usr/lib64/php/modules/oci8.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.2.10 (cli) (built: Sep 13 2018 16:53:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies

我在Google中找不到任何有用的信息。请帮忙(这是生产服务器)

编辑: 肯定不是关于错误的php.ini 扩展名= oci8.so 输出:

PHP Warning:  PHP Startup: Unable to load dynamic library 'oci8.so' (tried: /usr/lib64/php/modules/oci8.so (/usr/lib64/php/modules/oci8.so: undefined symbol: _zend_list_delete), /usr/lib64/php/modules/oci8.so.so (/usr/lib64/php/modules/oci8.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

extension = oci8 输出:

PHP Warning:  PHP Startup: Unable to load dynamic library 'oci8' (tried: /usr/lib64/php/modules/oci8 (/usr/lib64/php/modules/oci8: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/oci8.so (/usr/lib64/php/modules/oci8.so: undefined symbol: _zend_list_delete)) in Unknown on line 0

/usr/lib64/php/modules/oci8.so存在。

1 个答案:

答案 0 :(得分:0)

/usr/lib64/php/modules/oci8.so.so: cannot open shared object file

在该字符串的末尾有一个额外的.so。您可能已经在php.ini中找到了它:

extension = oci8.so

将其更改为:

extension = oci8