From: robocomp at mail dot ru Operating system: Windows 2003 x64 Server PHP version: 5.2.5 PHP Bug Type: Apache2 related Bug description: ORA-06413: Connection not open from apache 2 script
Description: ------------ I have installed Apache 2 on my Windows 2003 x64 server, then oracle 10.2.0.1 instant client, then PHP-5.2.5 with OCI8 extension. The reproduce code contains a script which could be successfully executed from command line, but when I try to run this script under Apache 2, it ends with the error message ORA-06413: Connection not open and does not connect of course. I tried to run Apache not as a service, try to run Apache as a service under privileged user - it does not work. The error still the same. What could it be? Is it bug or what? Reproduce code: --------------- <?php error_reporting(E_ALL); $conn = oci_connect('IAS2', 'Ias2PasswordHack', '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS = (PROTOCOL=TCP)(HOST=10.101.1.14)(PORT=1533)))(CONNECT_DATA=(SID=MINREG2)))', 'CL8MSWIN1251'); if (!$conn) { print_r(ocierror()); } print "Resource: $conn<br>\n"; ?> Expected result: ---------------- Resource: Resource id #4<br> Actual result: -------------- Array ( [code] => 6413 [message] => ORA-06413: Connection not open. [offset] => 0 [sqltext] => ) Resource: -- Edit bug report at http://bugs.php.net/?id=43992&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43992&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43992&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43992&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43992&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43992&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43992&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43992&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43992&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43992&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43992&r=support Expected behavior: http://bugs.php.net/fix.php?id=43992&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43992&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43992&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43992&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43992&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43992&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43992&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43992&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43992&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43992&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43992&r=mysqlcfg