From:             fadi at netways dot com
Operating system: Windows 2000
PHP version:      5.0.0
PHP Bug Type:     OCI8 related
Bug description:  Trying to connect to an oracle 9i Db, script hangs, same script on 
PHP4 works

Description:
------------
Platform:
=========
PHP 5.0 (Release)
Windows 2000 server
IIS 6.0 (PHP runs as ISAPI module)
Oracle 9i Client Tools (Admin)
ORACLE_HOME correctly set as system variable

Oracle Databae 9i installed on a separate reachable server (i tested
sqlplus).

IUSR_XXXX has correct permissions to C:\PHP and C:\Oracle\Ora92
directories.

IMPORTANT: Simply replacing PHP 5 with PHP 4.3.4 works

Reproduce code:
---------------
<?php
        $dbConnString = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST =
myserver)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mydb)))";
        $conn = OCILogon('username', 'password', $dbConnString);
        if( $conn ) echo "Connected:" . OCIServerVersion( $conn );
        else {  
                echo "Not Connected";
                exit();
        }
        $query = "SELECT * FROM LoginBackOffice";
        $statement = OCIParse ($conn, $query);
        OCIExecute ($statement);
        while (OCIFetchInto ($statement, $row, OCI_ASSOC)) {
            echo "<hr>";
            print_r( $row );
        }
        ocilogoff( $conn );
?>

Expected result:
----------------
2 rows of data!!!!

Actual result:
--------------
Script hangs indefinitly

-- 
Edit bug report at http://bugs.php.net/?id=29524&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29524&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29524&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29524&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29524&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29524&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29524&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29524&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29524&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29524&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29524&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29524&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29524&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29524&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29524&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29524&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29524&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29524&r=float

Reply via email to