ID:               29013
 Comment by:       bugs dot php dot net at matveyev dot net
 Reported By:      cjbj at hotmail dot com
 Status:           Assigned
 Bug Type:         OCI8 related
 Operating System: Windows, Linux
 PHP Version:      4.3.7, 5.0.0 Dev
 Assigned To:      tony2001
 New Comment:

On my system, I noticed that the appearance of the bug depends on the
way of starting my .php file.
If I start the script from bash, it works okay.
If I start the script directly from cron, it produces the error
described here.
So, I solved my problem starting it from cron with such a string:
"su - user -c "/path/to/script.php"


Previous Comments:
------------------------------------------------------------------------

[2005-02-25 16:04:51] goetten at gmail dot com

Hy

I'm having the following problem:

Warning: ociexecute(): OCIStmtExecute: ORA-03106: fatal two-task
communication protocol error in
/var/www/html/helpdesk/migracao/view.php on line 10

Warning: ocifetchinto(): OCIFetchInto: ORA-24374: define not done
before fetch or execute and fetch in
/var/www/html/helpdesk/migracao/view.php on line 12

These errors are in a simple query. Is it about the bug on php?

thank's

------------------------------------------------------------------------

[2004-10-17 06:51:42] [EMAIL PROTECTED]

I can see the problem now. 
Will look at it closer a bit later..

------------------------------------------------------------------------

[2004-10-14 10:11:36] cjbj at hotmail dot com

Using one user would make it harder to demonstrate the 
problem. Sorry I didn't include create user scripts etc.

I retested with 4.3.10-dev and 5.0.3-dev binaries of a few 
minutes ago. I am using W2K with Oracle 9.2 client libraries.
I am still seeing the usernames printed as SCOTT and HR, 
which is "incorrect".

------------------------------------------------------------------------

[2004-10-12 07:20:03] [EMAIL PROTECTED]

No, of course you should able to connect to Oracle from PHP using
different logins. 
My question should be read in this way: "are you able to reproduce it
under 1 user, but with different connections, because I was too lazy to
create a new user in Oracle?".
Btw, I've already created additional user and tested your code - your
example works perfectly for me.

------------------------------------------------------------------------

[2004-10-12 05:38:56] cjbj at hotmail dot com

The "business requirement" comes from the original report in
http://forums.oracle.com/forums/thread.jsp?forum=178&thread=251141

I don't think the way $c1 is impacted by the second login is obvious
or nice behavior.

I feel the problem is related to some of the common OCI8 connection
issues due to the caching and reuse of handles.  It would be nice to
resolve these issues.

There is no Oracle-OCI reason why two users can't be connected at one
time.  I think it should be allowed in PHP.  But if you think the
PHP-OCI8 interface should not support concurrent connections, can a
PHP error be generated at the time of the second OCINLogin()?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29013

-- 
Edit this bug report at http://bugs.php.net/?id=29013&edit=1

Reply via email to