Getting PDO-OCI to work in PHP 7
"Stokes, John M via php-db" <[email protected]> Tue, 28 May 2019 13:31:30 -0700
| Newsgroups | gmane.comp.php.database |
|---|---|
| Message-ID | <CAJWMrUJBpemZ4+Rt_B8g6DD84_gP3fR6u2-6e=pqU4JjAOR6LQ@mail.gmail.com> |
--0000000000007395fc0589f88dcd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
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 \
...
--with-mysqli=3D/usr/bin/mysql_config \
--with-pdo-mysql=3D/usr \
--with-pdo-odbc=3DunixODBC,/usr \
--with-pdo-oci=3Dinstantclient,/usr/lib/oracle/18.3/client64/lib/ \
--with-unixODBC=3D/usr \
...
The latest error is when I run "make":
...snip...
In file included from /root/php-7.2.4/ext/ldap/php_ldap.h:30:0,
from main/internal_functions.c:50:
/usr/include/oracle/18.3/client64/ldap.h:988:18: error: conflicting types
for =E2=80=98ber_scanf=E2=80=99
LDAPFUNCDECL int ber_scanf ( BerElement *ber, char * fmt, ... );
^
In file included from /root/php-7.2.4/ext/ldap/php_ldap.h:27:0,
from main/internal_functions.c:50:
/usr/include/lber.h:335:1: note: previous declaration of =E2=80=98ber_scanf=
=E2=80=99 was
here
ber_scanf LDAP_P((
^
make: *** [main/internal_functions.lo] Error 1
Can anyone offer me some ideas?
Thanks in advance.
-John
--
John Stokes =E2=80=93 Certified Oracle of Security seeking Zend wearing a R=
ed Hat.
(CISSP, ZCE, RHCSA)
Software Engineer
Verizon Wireless - West Territory Data Tools & Reporting
*Three Pillars: Humility, Communication, Balance*
--0000000000007395fc0589f88dcd--