diff options
author | Anatol Belski <ab@php.net> | 2014-08-25 21:51:49 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-25 21:51:49 +0200 |
commit | af59e92b24c8f624672720d47ef65bd8457728b9 (patch) | |
tree | 1da992a4689783e1351760a8702cbf6844ad37aa /ext/oci8/oci8_statement.c | |
parent | b9514bb8fd27e2d841bab3eb256fcbaa613aa049 (diff) | |
download | php-git-af59e92b24c8f624672720d47ef65bd8457728b9.tar.gz |
master renames phase 7PRE_AST_MERGE
Diffstat (limited to 'ext/oci8/oci8_statement.c')
-rw-r--r-- | ext/oci8/oci8_statement.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index 415961d4ca..f9d2a3a0ff 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -1143,7 +1143,7 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, int name_len, php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid variable used for bind"); return 1; } - convert_to_int(var); + convert_to_long(var); bind_data = (ub4 *)&Z_LVAL_P(var); value_sz = sizeof(ub4); mode = OCI_DEFAULT; @@ -1463,7 +1463,7 @@ php_oci_out_column *php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAME /* NB: for PHP4 compat only, it should be using 'Z' instead */ tmp = *column_index; zval_copy_ctor(&tmp); - convert_to_int(&tmp); + convert_to_long(&tmp); column = php_oci_statement_get_column(statement, Z_LVAL(tmp), NULL, 0 TSRMLS_CC); if (!column) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid column index \"%ld\"", Z_LVAL(tmp)); @@ -1720,7 +1720,7 @@ php_oci_bind *php_oci_bind_array_helper_number(zval *var, long max_table_length bind->array.element_lengths[i] = sizeof(ub4); } if ((i < bind->array.current_length) && (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE)) { - convert_to_int_ex(entry); + convert_to_long_ex(entry); ((ub4 *)bind->array.elements)[i] = (ub4) Z_LVAL_PP(entry); zend_hash_move_forward(hash); } else { |