OCI8 in PHP 7.0 with Xampp 32bit

Asked

Viewed 1,364 times

1

I’m using xampp in windows 7, PHP version is 7.0.15. I installed the Oracle Instant Client (32bits tbm) and then extracted in the "ext" php folder version 2.1.3 of OCI8 according to this site (https://pecl.php.net/package/oci8/2.1.3/windows). The problem is that after doing the whole process, phpinfo() does not display the OCI8 section, so it is not actually connected/installed. Thanks in advance!

As in php.ini: Extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client

Message when I put the command "php -m":

    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - NÒo foi possÝvel encontrar o m¾dulo especificado.
 in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - NÒo foi possÝvel encontrar o m¾dulo especificado.
 in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

inserir a descrição da imagem aqui

  • After extracting the DLL in the ext folder, you enabled this in your php.ini ? After changing php.ini, you restarted apache?

  • I did all that. With version 5.6.30 of PHP on when I started apache (after enabling the dll in php.ini) I was displaying a message as if I couldn’t read the dll. Oh and also when I try to install OCI8 on the terminal by pecl it displays an "error: the dsp oci8.dsp does not exist.

  • Are you using php version 5.6? Because this link you passed above is unique to php 7.

  • No no, I’m using PHP 7. Now that I saw it I must have deleted the part that mentioned that I had also tried with version 5.6.30. But I’m currently with version 7.

  • could post the part of your php.ini that is enabling the extension?

  • It looks like this and I decoded ";": Extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client

  • Could edit your question and put the formatted code?

  • In this case, the image of php.ini?

  • No. Please edit your question and add the part of php.ini that contains the OCI8 extension configuration

  • Ready, edited

  • Could you tell me the module is displayed as follows: Open a CMD, type php -m ?

  • I edited the post, take a look at what appeared. There is no oci8

  • And to make it worse, it keeps displaying the message that says php7.dll is missing.

  • By its error message, it is not finding the file in the folder. It could check if the DLL is in the folder and with the correct name?

  • It’s in the same folder and with the right name

  • Could provide a screenshot containing the folder name and the DLL?

  • Ready I edited. So?

  • Could you tell me if your php version is 32 or 64 bits? And the extension, is 32 or 64 bits?

  • Sorry for the delay, I spent the weekend without internet. Both PHP and extension are 32bits

  • Could try installing the listed extension here ?

  • Woow, connected with php/. Now I just need to see if I can communicate with the bank. Man, thank you very much! I’ve already moved on!

  • put an answer with the solution found. If this solved your problem, please mark it as the correct answer.

Show 17 more comments

1 answer

2


Your problem is related to ABI used in the compilation of the DLL. It is very likely that the DLL provided in the PECL is incorrect.

Download the correct DLL for your php version here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.