#36139 [Opn->Fbk]: Problem with oci_parse()
| From: | tony2001@php.net | Date: | Tue, 24 Jan 2006 19:16:08 +0000 |
| Subject: | #36139 [Opn->Fbk]: Problem with oci_parse() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92429@lists.php.net to get a copy of this message | ||
ID: 36139
Updated by: tony2001@php.net
Reported By: max__payne at list dot ru
-Status: Open
+Status: Feedback
Bug Type: OCI8 related
Operating System: Win 2003 Server Standard R2
PHP Version: 5.1.2
New Comment:
>Oracle Call Interface
I'm sure it's OCI, but I was asking about its version.
I mean are you using Oracle Instant Client _10_ or old libraries from
Oracle _8i_ or _9i_ ?
Short version: install Instant Client and see if it works.
Previous Comments:
------------------------------------------------------------------------
[2006-01-24 19:26:58] max__payne at list dot ru
Oracle Call Interface
Revision: 1.257.2.8
------------------------------------------------------------------------
[2006-01-24 12:28:45] tony2001@php.net
What version of client libraries are you using?
------------------------------------------------------------------------
[2006-01-24 12:13:13] max__payne at list dot ru
Description:
------------
Calls to oci_parse() sometimes hangs up server. Oracle server is Oracle
8.1.7.0.0 with update to 8.1.7.2.1 running under Windows 2000 Server SP
4 (P IV CPU).
With older versions of PHP (5.0.5) this code works fine.
Reproduce code:
---------------
$connection = oci_connect($username, $password, $tns_name);
$st = oci_parse($connection, "SELECT * FROM nextmonthbirthdays");
oci_execute($st, OCI_DEFAULT);
$res = oci_fetch_assoc($st);
while($res)
{
echo $res{"FIO"} . "<br>";
$res = oci_fetch_assoc($st);
}
oci_free_statement($st);
oci_close($connection);
Expected result:
----------------
List of names one per line expected, instead see nothing while script
is running.
Actual result:
--------------
Script above has no output, it hangs up server.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36139&edit=1