summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-12-21 18:12:57 +0800
committerXinchen Hui <laruence@gmail.com>2015-12-21 18:12:57 +0800
commit4531d2c5913eddbbc38d04be6b2dffec30202887 (patch)
tree6af07f5af2fe94e022b8c7681d43411c593ff55e
parent817513af4ec5e5a45fdd7ecd0a00e728d00c3ff3 (diff)
downloadphp-git-4531d2c5913eddbbc38d04be6b2dffec30202887.tar.gz
Fixed typo
-rw-r--r--ext/soap/php_encoding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c
index c03d433951..70824152c8 100644
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@ -2188,9 +2188,8 @@ static void add_xml_array_elements(xmlNodePtr xmlParam,
static inline int array_num_elements(HashTable* ht)
{
if (ht->nNumUsed &&
- Z_TYPE(ht->arData[ht->nNumUsed-1].val) != IS_UNUSED &&
+ Z_TYPE(ht->arData[ht->nNumUsed-1].val) != IS_UNDEF &&
ht->arData[ht->nNumUsed-1].key == NULL) {
-
return ht->arData[ht->nNumUsed-1].h - 1;
}
return 0;