php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76271 WAMPSERVER 3.1.3 32 bit, PHP 7.2.4 Oracle Client 11g issue
Submitted: 2018-04-25 18:17 UTC Modified: 2018-04-27 10:40 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: ukpatel890 at gmail dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 7.2.4 OS: window 7 32 bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ukpatel890 at gmail dot com
New email:
PHP Version: OS:

 

 [2018-04-25 18:17 UTC] ukpatel890 at gmail dot com
Description:
------------
WAMPSERVER 3.1.3 32 bit, PHP 7.2.4 Oracle Client 11g issue

I have installed Wampserver 3.1.3,32 bit on Windows 7 machine(32 bit). Wamp server has been installed correctly, getting a green icon on startup.

I have installed Oracle 32 client 11g on Windows machine and system environment variable path has been set c:\app\USER\product\11.2.0\client_1\bin;, where OCI.dll resides.

For work with oracle quries, I had enabled extension=php_oci8_11g in my php.ini file. Have verified, that php_oci8_11g.dll exists at C:\wamp\bin\php\php7.2.4\ext. And also verified, that extension_dir has been set to extension_dir ="c:/wamp/bin/php/php7.2.4/ext/" in my php.ini.

Whenever I start Wamp server, the icon changes to green, but errors are generated in PHP_ERROR log file

[24-Apr-2018 18:10:07 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_11g' (tried: c:/wamp/bin/php/php7.2.4/ext/oci8_11g (The specified module could not be found.), c:/wamp/bin/php/php7.2.4/ext/php_oci8_11g.dll (The specified module could not be found.)) in Unknown on line 0

Because of provided error my Oracle queries are not working. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-04-26 01:05 UTC] requinix@php.net
-Status: Open +Status: Feedback -Package: Oracle related +Package: OCI8 related
 [2018-04-26 01:05 UTC] requinix@php.net
Either the file is not there or one of its dependencies is missing/not in the search path. Double check everything.
Also use PHP to check that your PATH environment variable is what you think it is.
 [2018-04-26 07:47 UTC] ukpatel890 at gmail dot com
I have verified, php_oci8_11g.dll file is their at c:/wamp/bin/php/php7.2.4/ext/
What are dependent files ?
 [2018-04-26 10:28 UTC] requinix@php.net
The only one I see besides php7.dll is oci.dll. Since you did the first part about making sure the oci8 file is present, do the rest of what I said about checking that files are in the path and that PHP reports the path you think it has.
 [2018-04-27 08:17 UTC] ukpatel890 at gmail dot com
I have donwloaded php_oci8-2.1.0-7.0-ts-vc14-x86.zip from php.net, placed php_oci8_11g.dll,php_oci8_11g.dll,php_oci8_11g.pdb at c:/wamp/bin/php/php7.2.4/ext/, now error messages changes to 
"PHP Warning:  PHP Startup: oci8: Unable to initialize module
Module compiled with module API=20151012
PHP    compiled with module API=20170718
These options need to match
 in Unknown on line 0".

Can anyone guide on this error message
 [2018-04-27 08:19 UTC] spam2 at rhsoft dot net
I have donwloaded php_oci8-2.1.0-7.0-ts-vc14-x86.zip and "PHP Version: 7.2.4" sounds like a joke - pretty sure the whole bugreport is PEBCAK
 [2018-04-27 09:19 UTC] requinix@php.net
What spam2 is trying to say is that you downloaded the PHP 7.0 version but you're running 7.2.
 [2018-04-27 10:24 UTC] ukpatel890 at gmail dot com
It was mentioned on download page that for PHP7.0 or higher
 [2018-04-27 10:28 UTC] spam2 at rhsoft dot net
with every new version (5.6, 7.0, 7.1, 7.2, 7.3) the API is changed and every extension needs to be re-compiled - that's always the same since PHP exists and so when you have an extension for 7.0 it can not work with 7.1 or 7.2
 [2018-04-27 10:38 UTC] ukpatel890 at gmail dot com
I got it working after downloading correct dll files from below link 

https://windows.php.net/downloads/pecl/releases/oci8/2.1.8/

php_oci8-2.1.8-7.2-ts-vc15-x86.zip

Thanks every one for Helping me .
 [2018-04-27 10:40 UTC] requinix@php.net
-Status: Feedback +Status: Not a bug
 [2018-04-27 10:40 UTC] requinix@php.net
Glad you got it working.
 [2018-04-27 14:22 UTC] ukpatel890 at gmail dot com
And Morons like spam2@rhsoft.net should be blocked from this website.
 [2018-04-27 14:27 UTC] spam2 at rhsoft dot net
> And Morons like spam2@rhsoft.net should be blocked from this website

other like you i did not call you names, i simply pointed out that you can't be serious by download a binary for 7.0 and run it with 7.2

Module compiled with module API=20151012
PHP    compiled with module API=20170718

"Can anyone guide on this error message" is a effrontery because this is a bugtracker and not a support forum
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC