summaryrefslogtreecommitdiff
path: root/ext/oci8/php_oci8_int.h
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 19:16:51 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 19:20:56 +0100
commitbbcfa66e06110d8256595e644378a5358dda3558 (patch)
tree7f10e2a82a2a6804dfb0bbd0438398175e5421d0 /ext/oci8/php_oci8_int.h
parente08ce4c13db6e9aecd3497cd270b72d06c649bc7 (diff)
downloadphp-git-bbcfa66e06110d8256595e644378a5358dda3558.tar.gz
Use RETURN_THROWS() after zend_fetch_resource*()
Diffstat (limited to 'ext/oci8/php_oci8_int.h')
-rw-r--r--ext/oci8/php_oci8_int.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h
index 8790da3a16..60d9b32fe0 100644
--- a/ext/oci8/php_oci8_int.h
+++ b/ext/oci8/php_oci8_int.h
@@ -369,22 +369,22 @@ typedef struct {
#define PHP_OCI_ZVAL_TO_CONNECTION(zval, connection) \
if ((connection = (php_oci_connection *)zend_fetch_resource2(Z_RES_P(zval), "oci8 connection", le_connection, le_pconnection)) == NULL) { \
- RETURN_FALSE; \
+ RETURN_THROWS(); \
}
#define PHP_OCI_ZVAL_TO_STATEMENT(zval, statement) \
if ((statement = (php_oci_statement *)zend_fetch_resource(Z_RES_P(zval), "oci8 statement", le_statement)) == NULL) { \
- RETURN_FALSE; \
+ RETURN_THROWS(); \
}
#define PHP_OCI_ZVAL_TO_DESCRIPTOR(zval, descriptor) \
if ((descriptor = (php_oci_descriptor *)zend_fetch_resource(Z_RES_P(zval), "oci8 descriptor", le_descriptor)) == NULL) { \
- RETURN_FALSE; \
+ RETURN_THROWS(); \
}
#define PHP_OCI_ZVAL_TO_COLLECTION(zval, collection) \
if ((collection = (php_oci_collection *)zend_fetch_resource(Z_RES_P(zval), "oci8 collection", le_collection)) == NULL) { \
- RETURN_FALSE; \
+ RETURN_THROWS(); \
}
#define PHP_OCI_FETCH_RESOURCE_EX(zval, var, type, name, resource_type) \