Bug #76633 [Opn->Nab]: oci_connect have different behaviour between php-fpm and php-cli

From: Date: Sun, 09 Dec 2018 01:55:40 +0000
Subject: Bug #76633 [Opn->Nab]: oci_connect have different behaviour between php-fpm and php-cli
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218346@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76633&edit=1 ID: 76633 Updated by: sixd@php.net Reported by: maxander dot game at gmail dot com Summary: oci_connect have different behaviour between php-fpm and php-cli -Status: Open +Status: Not a bug Type: Bug Package: OCI8 related Operating System: CentOS Linux release 7.3.1611 PHP Version: 7.2.7 Block user comment: N Private report: N New Comment: This sounds like a misconfiguration with setting the environment. It should be followed up in a discussion forum first. There's no immediate indication this is a bug. Previous Comments: ------------------------------------------------------------------------ [2018-07-16 12:47:18] maxander dot game at gmail dot com Description: ------------ oci_connect can connect to the OID to resolve the database adress when launched from php command line. But oci_connect throws this exeption : "ORA-12154: TNS:could not resolve the connect identifier specified" when launched from my web application. (php-fpm). Both fpm and cli have the same env variables and the same config. Test script: --------------- $conn = oci_connect('USERNAME', 'PASSW', 'OID_BDNAME'); //Where OID_BDNAME is the database name in OID. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76633&edit=1

« previous php.bugs (#218346) next »