Skip to content

Commit 695ec3c

Browse files
authored
Remove unnecessary _IS_BOOL case (#12230)
This can never be executed because booleans are handled in a special case at the top of sxe_object_cast_ex().
1 parent bae3068 commit 695ec3c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/simplexml/simplexml.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,9 +1805,6 @@ static zend_result cast_object(zval *object, int type, char *contents)
18051805
case IS_STRING:
18061806
convert_to_string(object);
18071807
break;
1808-
case _IS_BOOL:
1809-
convert_to_boolean(object);
1810-
break;
18111808
case IS_LONG:
18121809
convert_to_long(object);
18131810
break;

0 commit comments

Comments
 (0)