php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43992 ORA-06413: Connection not open from apache 2 script
Submitted: 2008-01-31 13:20 UTC Modified: 2008-01-31 21:23 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: robocomp at mail dot ru Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.2.5 OS: Windows 2003 x64 Server
Private report: No CVE-ID: None
 [2008-01-31 13:20 UTC] robocomp at mail dot ru
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: 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-31 21:23 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 03:01:29 2024 UTC