diff options
author | Christopher Jones <sixd@php.net> | 2008-08-28 06:19:45 +0000 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2008-08-28 06:19:45 +0000 |
commit | c5aa4a138e4b806aaea4342c749b24addd95d1da (patch) | |
tree | 8ae251607626f68a023ec0af22b2035f76b713c9 /ext/oci8/oci8_interface.c | |
parent | 38b404fcb6006753d67288f2cd790abbbf26ff42 (diff) | |
download | php-git-c5aa4a138e4b806aaea4342c749b24addd95d1da.tar.gz |
MFH: Bug #45458 (OCI8: Numeric keys for associative arrays are not handled properly)
Diffstat (limited to 'ext/oci8/oci8_interface.c')
-rw-r--r-- | ext/oci8/oci8_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c index 7b872ed894..c7f0cceb95 100644 --- a/ext/oci8/oci8_interface.c +++ b/ext/oci8/oci8_interface.c @@ -1399,7 +1399,7 @@ PHP_FUNCTION(oci_fetch_all) if (flags & PHP_OCI_NUM) { zend_hash_next_index_insert(Z_ARRVAL_P(row), &element, sizeof(zval*), NULL); } else { /* default to ASSOC */ - zend_hash_update(Z_ARRVAL_P(row), columns[ i ]->name, columns[ i ]->name_len+1, &element, sizeof(zval*), NULL); + zend_symtable_update(Z_ARRVAL_P(row), columns[ i ]->name, columns[ i ]->name_len+1, &element, sizeof(zval*), NULL); } } @@ -1431,7 +1431,7 @@ PHP_FUNCTION(oci_fetch_all) MAKE_STD_ZVAL(tmp); array_init(tmp); - zend_hash_update(Z_ARRVAL_P(array), columns[ i ]->name, columns[ i ]->name_len+1, (void *) &tmp, sizeof(zval*), (void **) &(outarrs[ i ])); + zend_symtable_update(Z_ARRVAL_P(array), columns[ i ]->name, columns[ i ]->name_len+1, (void *) &tmp, sizeof(zval*), (void **) &(outarrs[ i ])); } } |