Bug #40681 [Com]: Unable to close persistent connection

From: Date: Thu, 06 Mar 2014 12:44:00 +0000
Subject: Bug #40681 [Com]: Unable to close persistent connection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184565@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=40681&edit=1 ID: 40681 Comment by: narf at devilix dot net Reported by: frmi at freemail dot hu Summary: Unable to close persistent connection Status: Not a bug Type: Bug Package: *Database Functions Operating System: linux PHP Version: 5.2.1 Block user comment: N Private report: N New Comment: Not a bug?! Are you for real?! If I tell PHP to close a connection, it MUST close it. In fact, *_close() is pretty much useless for non-persistent connections - I can just leave PHP to close them at the end of script execution. I'm not sure if this hasn't been fixed already though, considering that it was reported for PHP 5.2. Previous Comments: ------------------------------------------------------------------------ [2013-04-07 07:13:03] slavb18 at gmail dot com Related To: Bug #64603 ------------------------------------------------------------------------ [2007-03-02 05:42:05] frmi at freemail dot hu OK. I see I'll have no success with you. But you are surely wrong. The base concept is ok, but it is a little confusing. If there is pconnect, then there should be pclose. No place to doubt. If the concept is sooooo persistent as you say, and really there must be no pclose, then there must be no pconnect. I could understand this as well. Then the connection could be a configured one and it would be opened when trying to use it, or at script startup. But I think this would be topo strong. I cannot understand why a pclose would destroy concept of persistency. It is simply not true. And the problem is, that with denying a small bit of code to complete the concept, there are lots of problems which cannot be handled. ------------------------------------------------------------------------ [2007-03-01 19:47:51] tony2001@php.net >Even the documentation says that starting from the version 1.1 >oci_close() correctly closes the Oracle connection. >Not mentioning that it is not true for persistent connection. All persistent connections are not affected by *_close() functions, it's not something OCI8 specific. MySQL persistent connections cannot be closed by mysql_close() etc. etc. PHP behaves this way since the very introduction of persistent connections, and I doubt this is a subject to change in the future, since it'd destroy whole concept of "persistency". Hence the status of the report. ------------------------------------------------------------------------ [2007-03-01 19:38:29] frmi at freemail dot hu It's unfriendly to set status to bogus without having reason for that. Even the documentation says that starting from the version 1.1 oci_close() correctly closes the Oracle connection. Not mentioning that it is not true for persistent connection. Please be collaborative. ------------------------------------------------------------------------ [2007-03-01 19:22:20] frmi at freemail dot hu >I believe you're fixing wrong problem. >You should fix mystic behaviour of oracle first. Face what? Good joke. Easy to say that instead of telling a solution. I've such experience, even solved bug in oracle software just surfing source code, but at first waiting few months for the solution from oracle support. I think oci_pclose would be good, no reason of not having that. And it is a bit easier then solving all oracle bugs. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=40681 -- Edit this bug report at https://bugs.php.net/bug.php?id=40681&edit=1

« previous php.bugs (#184565) next »