mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #41097 (ext/soap returning associative array as indexed without using WSDL)
This commit is contained in:
parent
f409fcd02a
commit
3721cb9d8d
4 changed files with 37 additions and 2 deletions
|
@ -3356,8 +3356,12 @@ static int is_map(zval *array)
|
|||
int i, count = zend_hash_num_elements(Z_ARRVAL_P(array));
|
||||
|
||||
zend_hash_internal_pointer_reset(Z_ARRVAL_P(array));
|
||||
for (i = 0;i < count;i++) {
|
||||
if (zend_hash_get_current_key_type(Z_ARRVAL_P(array)) == HASH_KEY_IS_STRING) {
|
||||
for (i = 0; i < count; i++) {
|
||||
char *str_index;
|
||||
ulong num_index;
|
||||
|
||||
if (zend_hash_get_current_key(Z_ARRVAL_P(array), &str_index, &num_index, 0) == HASH_KEY_IS_STRING ||
|
||||
num_index != i) {
|
||||
return TRUE;
|
||||
}
|
||||
zend_hash_move_forward(Z_ARRVAL_P(array));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue