Topic: Add latest version php_oci8

The version 1.4.10 of php_oci8 don't work if php-fpm running as daemon
Could You update php_oci8 version to 2.0.8?

Re: Add latest version php_oci8

php-oci8 is build from PHP sources and provides 2 extensions
* oci8 version 1.4.9 in php 5.4, 1.4.10 in php 5.5 and 2.0.9 in php 5.6
* pdo_oci

The pecl/oci8 doesn't provides pdo_oci8. So I prefer to keep the bundled extension.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Add latest version php_oci8

Well... perhaps I could provide both...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Add latest version php_oci8

Can you please try php-pecl-oci8 version 2.0.8 which is now in the remi and remi-php55 repositories.

Notice: of course, you have to uninstall php-oci8 first.

Will be improved in next php build:
- php-oci8 obsoletes php-pecl-oci8 when version provided is greater (php 5.6 provides version 2.0.9), else php-oci8 conflicts with php-pecl-oci8 (php-pecl-oci8 cannot obsolete php-oci8 as it doesn't provide the PDO driver).

So admin will have to chose which package/extension they wants at install time.

P.S. and the package description have been slightly improved...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Add latest version php_oci8

Notice, in the blog comment you say "...don't work if php-fpm running as daemon."

Probably you need to set the php-fpm environement for Oracle in the service configuration file (/etc/sysconfig/php-fpm), per example (need to be adapted)

# Patch to libclntsh.so.12.1
export LD_LIBRARY_PATH=/usr/lib64/oracle/12.1/client64/lib/

# locale
export NLS_LANG=FRENCH_FRANCE.AL32UTF8

# path to tnsadmin.ora
export TNS_ADMIN=/etc/oracle
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Add latest version php_oci8

Thank You.
All works with the php-pecl-oci8 package
I use php 5.5 and Oracle client 12.1

Re: Add latest version php_oci8

> All works with the php-pecl-oci8 package
smile

Thanks for the feedback.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi