php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18320 ORA-03106: fatal two-task communication protocol error
Submitted: 2002-07-12 13:27 UTC Modified: 2002-07-20 11:43 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:5 (100.0%)
From: galvao at informabrasil dot com dot br Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.2.1 OS: Linux - SuSE 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: galvao at informabrasil dot com dot br
New email:
PHP Version: OS:

 

 [2002-07-12 13:27 UTC] galvao at informabrasil dot com dot br
Greetings.

I'm having problems when I try to retrieve *char values from Oracle 8.1.7. I'm trying with a script that I've made and even with the examples from php.net and nothing seems to work. I always receive the same message from Oracle (see the title).

The strange thing is that this only happens with string-types (char, varchar, etc). If I try to retrieve a date or a number it works ok.

If I try it with other languages than PHP it also works.

Here is an example script - you can see it's the same from PHP docs:

<?php
    $user = "foo";
    $pass = "bar";
    $tns  = "my_db";
    
    $conn = ociplogon($user,$pass,$tns) or die("Connection error");
    
    $query = sprintf("SELECT NAME FROM xyz");
    
    $stmt = ociparse($conn,$query);
    
    ociexecute($stmt); // Here's where the error occur
    
    while(ocifetch($stmt))
    {
        echo ociresult($stmt);
    }


    ocilogoff($conn);
?>

If I replace "NAME" by "COD" (an int field) it works fine.

I've also saw dozens of posts in PHP communities relating directly to the same problem I'm having.

Is this a bug? If it is when it will be fixed?

If it's not you should at least post the solution on the FAQ, since there are many developers having this problem.

Thanks in advance,

Er Galv?o Abbott
 Informa Brasil

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-12 15:21 UTC] derick@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
 [2002-07-12 15:22 UTC] derick@php.net
sorry... wrong number :)
 [2002-07-12 16:35 UTC] galvao at informabrasil dot com dot br
No problem.

Any thoughts about it? If you need any new information about this, please contact me either at my work e-mail (galvao@informabrasil.com.br) or home e-mail (erabbott@terra.com.br), as this is causing several problems on our upcoming projects.

Thanks in advance,

Er Galv?o Abbott
 Informa Brasil
 [2002-07-20 11:43 UTC] thies@php.net
there is no bug in PHP. plz make sure that you have all   
env vars setup correct (see the php manual for that). thre  
is nothing PHP does wrong which could cause a ORA-03106  
   
   
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 21:01:30 2024 UTC