I have made multiple attempts to get PDO-OCI to work in PHP 7. Sometimes it
fails to compile at all, other times appears to compile correctly, but I
can't connect to any Oracle databases. Thus far, this has kept me stuck on
PHP 5.x.
The relevant part of my configure statement is:
./configure \
...
Possibly try a two stage build:
- build your main PHP without PDO_OCI
- build PDO_OCI as a shared library with a simplified configure command that
doesn't have ldap.
Then move the resulting PDO_OCI library to your first PHP install and update
php.ini.
Then test thoroughly.
I have had to do