mirror of
https://github.com/php/php-src.git
synced 2025-01-25 21:23:45 +08:00
OCIBreak() is not supported on Windows
This commit is contained in:
parent
946a29753c
commit
7f2e2b105a
@ -1770,15 +1770,8 @@ static int php_oci_persistent_helper(zend_rsrc_list_entry *le TSRMLS_DC)
|
|||||||
|
|
||||||
if (connection->used_this_request) {
|
if (connection->used_this_request) {
|
||||||
if ((PG(connection_status) & PHP_CONNECTION_TIMEOUT)) {
|
if ((PG(connection_status) & PHP_CONNECTION_TIMEOUT)) {
|
||||||
/* call OCIBreak() on timeout to avoid appearance of deadlocked persistent connections */
|
|
||||||
connection->errcode = PHP_OCI_CALL(OCIBreak, (connection->svc, connection->err));
|
|
||||||
if (connection->errcode != OCI_SUCCESS) {
|
|
||||||
php_oci_error(connection->err, connection->errcode TSRMLS_CC);
|
|
||||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
|
||||||
/* OCIBreak() failed. delete the connection */
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (connection->descriptors) {
|
if (connection->descriptors) {
|
||||||
zend_hash_destroy(connection->descriptors);
|
zend_hash_destroy(connection->descriptors);
|
||||||
|
Loading…
Reference in New Issue
Block a user