mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
fixed whitespace dependend behavior of casting SimpleXMLElements to boolean
This commit is contained in:
parent
8e5b906459
commit
f27b9ead6b
@ -1066,7 +1066,7 @@ static int sxe_prop_is_empty(zval *object) /* {{{ */
|
||||
if (node->type == XML_ATTRIBUTE_NODE) {
|
||||
return 0;
|
||||
} else if (sxe->iter.type != SXE_ITER_CHILD) {
|
||||
if (!node->children || !node->parent || !node->next || node->children->next || node->children->children || node->parent->children == node->parent->last) {
|
||||
if (sxe->iter.type == SXE_ITER_NONE || !node->children || !node->parent || node->children->next || node->children->children || node->parent->children == node->parent->last) {
|
||||
node = node->children;
|
||||
} else {
|
||||
ZVAL_COPY_VALUE(&iter_data, &sxe->iter.data);
|
||||
|
Loading…
Reference in New Issue
Block a user