com php-src: Drop unnecessary HASH_OF uses in ext/oci 8: ext/oci8/oci8_statement.c
| From: | Nikita Popov | Date: | Thu, 11 Oct 2018 11:04:08 +0000 |
| Subject: | com php-src: Drop unnecessary HASH_OF uses in ext/oci 8: ext/oci8/oci8_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-103436@lists.php.net to get a copy of this message | ||
Commit: 2c7be428530df41bb5de23e7788677930b618903
Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 11 Oct 2018 12:33:26 +0200
Parents: bfaba83102e886de93aaec7d773ec3adfb2c943f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2c7be428530df41bb5de23e7788677930b618903
Log:
Drop unnecessary HASH_OF uses in ext/oci8
These only operate on arrays.
Changed paths:
M ext/oci8/oci8_statement.c
Diff:
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index 31b5a48..24db6e6 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -1023,7 +1023,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) {
@@ -1769,7 +1769,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);
@@ -1843,7 +1843,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);
@@ -1884,7 +1884,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);
@@ -1926,7 +1926,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);