|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-31 21:23 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
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: