mercredi 25 septembre 2019

Laravel doesn't load OCI8 extension (Installed / Working out of Laravel)

I've installed php_oci8_12c & php_pdo_oci on my machine (Windows 7/64bit, Wamp 3.1, Apache 2.4, PHP 5.6) .. and I've installed the proper Oracle Instant client + SDK and configured environment path, and placed DLLs on Apache\bin.

All is fine and I could successfully connect to the Oracle server and fetch some data using native PHP script.. using oci_connect() function.

When I tried to connect to the same server from the same machine but this time from Laravel 5.4 project with the package yajra/laravel-oci8 installed ... I got this error 'Call to undefined function Yajra\Pdo\oci_connect()'

When I tried to check loaded extension using this function

print_r(get_loaded_extensions());

The results from the native PHP script was ... (oci8, PDO_OCI) are listed in loaded extensions list.

But the results from the Laravel project was .. These extensions are not loaded ... I couldn't find these extensions at all.

So ... could anyone guide me to the cause of this mess?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2l6M5wG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire