Howdy People,
Info:
===
I am witnessing problems with PHP, Apache and OCI8.
We have profiles on our Oracle databases, so sessions get sniped if they
hang on to long.
Problem:
======
The PHP ocilogoff() call is not operating, as seen from the source.
Is there some way I could logoff from Oracle?
Or should I reprogram/enable it in the oci8.c?
~~
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.
([EMAIL PROTECTED] 20000110)
#endif
oci_connection *connection;
zval **conn;
if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
OCI_GET_CONN(connection,conn);
connection->is_open = 0;
file://zend_hash_apply(list, (apply_func_t) _stmt_cleanup TSRMLS_CC);
if (zend_list_delete(connection->id) == SUCCESS) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
}
~~
--
Vriendelijke Groet,
Roderick
--
Pettemerstraat 12A T r I p l e
1823 CW Alkmaar T
Tel. +31 (0)72-5129516
fax. +31 (0)72-5129520 Automatisering
www.triple-it.nl "Laat uw Net Werken!"
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php