OCI8 and instanclient
Posted by: jesusvpct (---.azl.upct.es)
Date: October 16, 2017 09:45AM

I've installed WAMP 3.1.0 x64 on Windows7, and I have OCI-8 working fine with Apache when running phpinfo() and showing all info related to PHP and OCI8, and I can work with it, but there is something wrong when I execute php -i from command line, instantclient is not detected and it displays 0.0.0.0. I need this to work because I'm using Laravel with OCI8, and It always displays OCI8Exception using composer update, and I can't run any migration.


Previously, I was using XAMPP 32 bit and worked fine with Apache and with console command, so I don't know why here is not working. I need 64 bit because 32 bit seems to have a bug when using bigger integers on OCI8.


My instanclient is 11.2 version. I've downloaded php-oci8 from [pecl.php.net].

EDITED: It works now! I don't know why, but when adding php to my PATH I've removed instantclient path. Sorry!



Edited 2 time(s). Last edit at 10/16/2017 10:04AM by jesusvpct.

Options: ReplyQuote
Re: OCI8 and instanclient
Posted by: Otomatic (Moderator)
Date: October 16, 2017 07:59PM

Hi,

> I need 64 bit because 32 bit seems to have a bug when using bigger integers on OCI8.
Integer on PHP 32 bit are always 32 bit.
Integer on PHP 64 bit are 64 bits ONLY for PHP 7.0.0+

For PHP command line you need to edit wamp64/bin/php/php7.1.10/php.ini file.

>I don't know why, but when adding php to my PATH I've removed instantclient path
Except very special cases for which you know exactly what you are doing AND the implications of your addition in the PATH, this is one thing not to do.
You need to look in what order and where PHP will look where the php.ini file is. In addition, the PATH will not be changed if you change the PHP version.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.