summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-10-11 12:33:26 +0200
committerChristopher Jones <christopher.jones@oracle.com>2018-12-07 23:21:32 +1100
commite3946534a47afc6678eccaf5217632221ed297df (patch)
tree7a387e1bbdede610097dabef6072e0b551aa6f87
parentb797818e09d3d2f7b81ca4c8c4e4bb874f623c87 (diff)
downloadphp-git-e3946534a47afc6678eccaf5217632221ed297df.tar.gz
Drop unnecessary HASH_OF uses in ext/oci8
These only operate on arrays.
-rw-r--r--ext/oci8/oci8_statement.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index d80bb5f1d7..4ad75cd169 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -1002,7 +1002,7 @@ int php_oci_bind_post_exec(zval *data)
HashTable *hash;
SEPARATE_ARRAY(zv);
- hash = HASH_OF(zv);
+ hash = Z_ARRVAL_P(zv);
zend_hash_internal_pointer_reset(hash);
switch (bind->array.type) {
@@ -1727,7 +1727,7 @@ php_oci_bind *php_oci_bind_array_helper_string(zval *var, zend_long max_table_le
zval *entry;
SEPARATE_ARRAY(var); /* TODO: may be use new HashTable iteration and prevent inplace modification */
- hash = HASH_OF(var);
+ hash = Z_ARRVAL_P(var);
if (maxlength == -1) {
zend_hash_internal_pointer_reset(hash);
@@ -1801,7 +1801,7 @@ php_oci_bind *php_oci_bind_array_helper_number(zval *var, zend_long max_table_le
zval *entry;
SEPARATE_ARRAY(var); /* TODO: may be use new HashTable iteration and prevent inplace modification */
- hash = HASH_OF(var);
+ hash = Z_ARRVAL_P(var);
bind = emalloc(sizeof(php_oci_bind));
ZVAL_UNDEF(&bind->val);
@@ -1842,7 +1842,7 @@ php_oci_bind *php_oci_bind_array_helper_double(zval *var, zend_long max_table_le
zval *entry;
SEPARATE_ARRAY(var); /* TODO: may be use new HashTable iteration and prevent inplace modification */
- hash = HASH_OF(var);
+ hash = Z_ARRVAL_P(var);
bind = emalloc(sizeof(php_oci_bind));
ZVAL_UNDEF(&bind->val);
@@ -1884,7 +1884,7 @@ php_oci_bind *php_oci_bind_array_helper_date(zval *var, zend_long max_table_leng
sword errstatus;
SEPARATE_ARRAY(var); /* TODO: may be use new HashTable iteration and prevent inplace modification */
- hash = HASH_OF(var);
+ hash = Z_ARRVAL_P(var);
bind = emalloc(sizeof(php_oci_bind));
ZVAL_UNDEF(&bind->val);