File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -845,12 +845,9 @@ PHP_METHOD(XMLReader, open)
845
845
846
846
id = getThis ();
847
847
if (id != NULL ) {
848
- if (! instanceof_function (Z_OBJCE_P (id ), xmlreader_class_entry )) {
849
- id = NULL ;
850
- } else {
851
- intern = Z_XMLREADER_P (id );
852
- xmlreader_free_resources (intern );
853
- }
848
+ ZEND_ASSERT (instanceof_function (Z_OBJCE_P (id ), xmlreader_class_entry ));
849
+ intern = Z_XMLREADER_P (id );
850
+ xmlreader_free_resources (intern );
854
851
}
855
852
856
853
if (!source_len ) {
@@ -1025,10 +1022,8 @@ PHP_METHOD(XMLReader, XML)
1025
1022
}
1026
1023
1027
1024
id = getThis ();
1028
- if (id != NULL && ! instanceof_function (Z_OBJCE_P (id ), xmlreader_class_entry )) {
1029
- id = NULL ;
1030
- }
1031
1025
if (id != NULL ) {
1026
+ ZEND_ASSERT (instanceof_function (Z_OBJCE_P (id ), xmlreader_class_entry ));
1032
1027
intern = Z_XMLREADER_P (id );
1033
1028
xmlreader_free_resources (intern );
1034
1029
}
You can’t perform that action at this time.
0 commit comments