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().
This commit is contained in:
Niels Dossche 2023-09-17 16:19:22 +02:00 committed by GitHub
parent bae30682b8
commit 695ec3c97e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1805,9 +1805,6 @@ static zend_result cast_object(zval *object, int type, char *contents)
case IS_STRING: case IS_STRING:
convert_to_string(object); convert_to_string(object);
break; break;
case _IS_BOOL:
convert_to_boolean(object);
break;
case IS_LONG: case IS_LONG:
convert_to_long(object); convert_to_long(object);
break; break;