PHP 4.0 Bug #10206: PHP in CGI mode fails to perform OCILogon

From: Date: Fri, 06 Apr 2001 12:47:51 +0000
Subject: PHP 4.0 Bug #10206: PHP in CGI mode fails to perform OCILogon
Groups: php.dev 
Request: Send a blank email to php-dev+get-51025@lists.php.net to get a copy of this message
From: nick@tf.kharkov.net Operating system: IIS 4.0, NT Server 4.0 SP6 PHP version: 4.0.4pl1 PHP Bug Type: OCI8 related Bug description: PHP in CGI mode fails to perform OCILogon When I use php in CGI mode any script can't connect to the Oracle DB throught the OCILogon call. When I switch to the ISAPI mode these scripts work OK. the sample script: <?php $dbuser="scott"; $dbpass="tiger"; $dbhost="devnt01"; if (! $dbconn=OCILogon($dbuser,$dbpass,$dbhost)) print("Cannot connect to oracle db '$dbhost' as user '$dbuser'"); ?> oracle reports: ORA-12154: TNS:could not resolve service name in C:\InetPub\wwwroot\test.php4 on line 5 -- Edit Bug report at: http://bugs.php.net/?id=10206&edit=1

« previous php.dev (#51025) next »