Bug #76633 [NEW]: oci_connect have different behaviour between php-fpm and php-cli
| From: | maxander dot game at gmail dot com | Date: | Mon, 16 Jul 2018 12:47:19 +0000 |
| Subject: | Bug #76633 [NEW]: oci_connect have different behaviour between php-fpm and php-cli | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-216347@lists.php.net to get a copy of this message | ||
From: maxander dot game at gmail dot com
Operating system: CentOS Linux release 7.3.1611
PHP version: 7.2.7
Package: PDO OCI
Bug Type: Bug
Bug description:oci_connect have different behaviour between php-fpm and php-cli
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 bug report at https://bugs.php.net/bug.php?id=76633&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76633&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76633&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76633&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76633&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76633&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76633&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76633&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76633&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76633&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76633&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76633&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76633&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76633&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76633&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76633&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76633&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76633&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76633&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76633&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76633&r=mysqlcfg