'c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll' - %1 Is not a valid Win32 application.
Posted by: terminator01 (41.202.220.---)
Date: January 13, 2017 11:08AM

hello,
In order to access an oracle database from php, I had to activate the extension php_oci8_12c. But when I do, it does not appear in the phpinfo ().
On the other hand, I get in the php logs the error message
[13-Jan-2017 08:39:48 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll' -% 1 is not a Valid win32 application

thank you,

Options: ReplyQuote
Re: 'c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll' - %1 Is not a valid Win32 application.
Posted by: RiggsFolly (Moderator)
Date: January 13, 2017 01:08PM

Did you also install the Oracle Client software. The PHP php_oci8_12c.dll is only and interface between PHP and the Oracle Client software that must be installed on your PC as well.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 'c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll' - %1 Is not a valid Win32 application.
Posted by: terminator01 (41.202.220.---)
Date: January 13, 2017 06:28PM

I just installed the oracle instant. but now, i have this error message when i start wamp
"The procedure entry point OCILobRead2 could not be located in the dynamic link library OCI.dll"
and then
""php Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_oci8_11g.dll' - The specified module could not be found"

ps: i also changed my wamp version to wamp 2.5 32 bit

Options: ReplyQuote
Re: 'c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll' - %1 Is not a valid Win32 application.
Posted by: RiggsFolly (Moderator)
Date: January 13, 2017 06:54PM

Did you load the Oracle12 client or the Oracle8 Client?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 'c:/wamp64/bin/php/php7.0.10/ext/php_oci8_12c.dll' - %1 Is not a valid Win32 application.
Posted by: terminator01 (41.202.220.---)
Date: January 16, 2017 09:31AM

Oracle11,

I finally found what was wrong

May be a conflict issue between the Oracle clients on my machine. AnyWay, to solve the problem, I changed the position of Oracle Instant Client in the PATH to put it at the beginning of chain

Options: ReplyQuote


Sorry, only registered users may post in this forum.