note 10144 deleted from function.ocilogoff by didou
| From: | didou@php.net | Date: | Tue, 12 Aug 2003 08:28:51 +0000 |
| Subject: | note 10144 deleted from function.ocilogoff by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53950@lists.php.net to get a copy of this message | ||
Note Submitter: weazel@weazel.student.utwente.nl
----
It seems that in php 4.0.3pl1 calling OCILogoff() has NO effect. This is what is said in the source:
PHP_FUNCTION(ocilogoff)
{
#if 0
this function does nothing any more. server-connections get automagiclly closed on
request-end. connection handles will "dissappear" as soon as they are no longer
referenced. as this module makes heavy use of zends reference-counting mechanism
this is the desired behavior. it has always been a bad idea to close a connection that
has outstanding transactions. this way we have a nice-clean approach.
(thies@digicol.de 20000110)
oci_connection *connection;
zval **conn;
if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
OCI_GET_CONN(connection,conn);
connection->open = 0;
zend_hash_apply(list,(int (*)(void *))_stmt_cleanup);
if (zend_list_delete(connection->id) == SUCCESS) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
#endif
}