diff options
author | Christopher Jones <christopher.jones@oracle.com> | 2018-12-09 11:28:04 +1100 |
---|---|---|
committer | Christopher Jones <christopher.jones@oracle.com> | 2018-12-09 11:28:04 +1100 |
commit | 216d6592e1f571a2753d35278ce12c3e84c7d091 (patch) | |
tree | f2520b56996fa058e1c00d90e7f81d0f8ba307d7 /ext/oci8/oci8_statement.c | |
parent | fd0077bf0621dc28962cfce13431f2fcbff5c504 (diff) | |
download | php-git-216d6592e1f571a2753d35278ce12c3e84c7d091.tar.gz |
Convert some parameter parsing to the Fast Parameter Parsing API
Diffstat (limited to 'ext/oci8/oci8_statement.c')
-rw-r--r-- | ext/oci8/oci8_statement.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index 4ad75cd169..b4e5118f9c 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -1511,9 +1511,10 @@ php_oci_out_column *php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAME php_oci_statement *statement; php_oci_out_column *column; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "rz", &z_statement, &column_index) == FAILURE) { - return NULL; - } + ZEND_PARSE_PARAMETERS_START(2, 2) + Z_PARAM_RESOURCE(z_statement) + Z_PARAM_ZVAL(column_index) + ZEND_PARSE_PARAMETERS_END_EX(return NULL); statement = (php_oci_statement *) zend_fetch_resource_ex(z_statement, "oci8 statement", le_statement); |