Bug #74631 [NEW]: PDO_OCI with PHP-FPM: OCI environment initialized before PHP-FPM sets it up
| From: | ingmar dot php at irsoft dot de | Date: | Mon, 22 May 2017 14:00:45 +0000 |
| Subject: | Bug #74631 [NEW]: PDO_OCI with PHP-FPM: OCI environment initialized before PHP-FPM sets it up | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-209224@lists.php.net to get a copy of this message | ||
From: ingmar dot php at irsoft dot de
Operating system: Linux
PHP version: 7.1.5
Package: PDO OCI
Bug Type: Bug
Bug description:PDO_OCI with PHP-FPM: OCI environment initialized before PHP-FPM sets it up
Description:
------------
In PHP_MINIT_FUNCTION(pdo_oci), there's a call to OCIEnvCreate (or
OCIEnvInit).
OCI internally reads some environment variables in this call.
In PHP-FPM, the set of environment variables for each worker process is
initialized after all PHP_MINIT_FUNCTIONs have run.
This means that e.g. if NLS_LANG is used with php-fpm, it never has an
effect in OCI.
My suggested solution is to move the initialization to
PHP_RINIT_FUNCTION(pdo_oci).
Patch/PR coming up...
Expected result:
----------------
NLS_LANG environment setting works with php-fpm
Actual result:
--------------
NLS_LANG environment setting does not work with php-fpm
--
Edit bug report at https://bugs.php.net/bug.php?id=74631&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74631&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74631&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74631&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74631&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74631&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74631&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74631&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74631&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74631&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74631&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74631&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74631&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74631&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74631&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74631&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74631&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74631&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74631&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74631&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74631&r=mysqlcfg