diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-05-02 17:24:16 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-05-02 17:24:16 +0000 |
commit | df61bae6366dfa434818b7a867759f24fdf3b103 (patch) | |
tree | 08a87f5387e83d20e82a65345858eb184a3074b2 /ext/soap/php_encoding.c | |
parent | fca80f63fb13e3960d9e00c7b9286171b320e7ac (diff) | |
download | php-git-df61bae6366dfa434818b7a867759f24fdf3b103.tar.gz |
Reverted the following fixed because of php-5.2.2 release process
- Fixed altering $this via argument named "this".
- Fixed bug #41097 (ext/soap returning associative array as indexed without
using WSDL).
- Fixed bug #41004 (minOccurs="0" and null class member variable).
Diffstat (limited to 'ext/soap/php_encoding.c')
-rw-r--r-- | ext/soap/php_encoding.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 6a2c71d583..2ae06a768a 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -1595,8 +1595,6 @@ static int model_to_xml_object(xmlNodePtr node, sdlContentModelPtr model, zval * property = xmlNewNode(NULL, BAD_CAST("BOGUS")); xmlAddChild(node, property); set_xsi_nil(property); - } else if (Z_TYPE_P(data) == IS_NULL && model->min_occurs == 0) { - return 1; } else { property = master_to_xml(enc, data, style, node); if (property->children && property->children->content && @@ -3358,12 +3356,8 @@ 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++) { - 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) { + for (i = 0;i < count;i++) { + if (zend_hash_get_current_key_type(Z_ARRVAL_P(array)) == HASH_KEY_IS_STRING) { return TRUE; } zend_hash_move_forward(Z_ARRVAL_P(array)); |