Bug #16704 Updated: Screwed up handles while connection multiple DBs

From: Date: Tue, 23 Apr 2002 07:19:58 +0000
Subject: Bug #16704 Updated: Screwed up handles while connection multiple DBs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5636@lists.php.net to get a copy of this message
ID: 16704 Updated by: thomas.hoppe@daimlerchrysler-bank.com Reported By: thomas.hoppe@daimlerchrysler-bank.com Status: Feedback Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.1.2 New Comment: Hi, I'll send you a nice testsript tomorrow (European Time). cu Previous Comments: ------------------------------------------------------------------------ [2002-04-22 14:45:55] thies@php.net please send me a shot _selfcontained_ php script that shows and explains your problem! ------------------------------------------------------------------------ [2002-04-22 14:06:13] thmas.hoppe@daimlerchrysler-bank.com I also tried OCINLogon, but there was no difference. Addition: As the documentation implies: it should be no problem for any OCI*logon function to make more than one connections! ------------------------------------------------------------------------ [2002-04-22 13:55:31] thies@php.net use OCINlogon to force session isolation. ------------------------------------------------------------------------ [2002-04-22 13:53:13] thomas.hoppe@daimlerchrysler-bank.com Bah! Bug in bug report: 5.) echo out connection one $con1 -> you get Resource id # 2 _______^ ------------------------------------------------------------------------ [2002-04-22 11:55:47] thomas.hoppe@daimlerchrysler-bank.com Update: One piece of information was wrong: I use always the same instance/SID name. But now I've even tried to create a alias for my instance that both conns get a different instance without success. After digging deeper into the problem I've figured out a really easy way to see the bug: 1.) Create connection one $con1 2.) echo it out echo $con1 -> you get Resource id # 1 3.) Create connection two $con2 4.) echo it out echo $con2 -> you get Resource id # 2 5.) echo out connection one $con1 -> you get Resource id # 1 You see even the connection handles reflect the reality. cu ------------------------------------------------------------------------ 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/16704 -- Edit this bug report at http://bugs.php.net/?id=16704&edit=1

« previous php.bugs (#5636) next »