diff options
Diffstat (limited to 'ext/oci8/oci8.c')
-rw-r--r-- | ext/oci8/oci8.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index c2c9ba4402..90f154c8a9 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -965,7 +965,7 @@ static oci_connection *oci_get_conn(zval **conn) { oci_connection *connection; - connection = (oci_connection *) zend_fetch_resource(conn, -1, "OCI8-Connection", NULL, 1, le_conn); + connection = (oci_connection *) zend_fetch_resource(conn TSRMLS_CC, -1, "OCI8-Connection", NULL, 1, le_conn); if (connection && connection->is_open) { return connection; @@ -981,7 +981,7 @@ static oci_statement *oci_get_stmt(zval **stmt) { oci_statement *statement; - statement = (oci_statement *) zend_fetch_resource(stmt, -1, "OCI8-Statement", NULL, 1, le_stmt); + statement = (oci_statement *) zend_fetch_resource(stmt TSRMLS_CC, -1, "OCI8-Statement", NULL, 1, le_stmt); if (statement && statement->conn->is_open) { return statement; @@ -3988,12 +3988,12 @@ PHP_FUNCTION(ocierror) dvoid *errh = NULL; if (zend_get_parameters_ex(1, &arg) == SUCCESS) { - statement = (oci_statement *) zend_fetch_resource(arg, -1, NULL, NULL, 1, le_stmt); + statement = (oci_statement *) zend_fetch_resource(arg TSRMLS_CC, -1, NULL, NULL, 1, le_stmt); if (statement) { errh = statement->pError; error = statement->error; } else { - connection = (oci_connection *) zend_fetch_resource(arg, -1, NULL, NULL, 1, le_conn); + connection = (oci_connection *) zend_fetch_resource(arg TSRMLS_CC, -1, NULL, NULL, 1, le_conn); if (connection) { errh = connection->pError; error = connection->error; |