File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1102,7 +1102,8 @@ PHP_METHOD(DOMDocument, __construct)
1102
1102
}
1103
1103
intern -> document = NULL ;
1104
1104
if (php_libxml_increment_doc_ref ((php_libxml_node_object * )intern , docp ) == -1 ) {
1105
- RETURN_FALSE ;
1105
+ /* docp is always non-null so php_libxml_increment_doc_ref() never returns -1 */
1106
+ ZEND_UNREACHABLE ();
1106
1107
}
1107
1108
php_libxml_increment_node_ptr ((php_libxml_node_object * )intern , (xmlNodePtr )docp , (void * )intern );
1108
1109
}
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ PHP_FUNCTION(net_get_interfaces) {
301
301
freeifaddrs (addrs );
302
302
#else
303
303
/* Should never happen as we never register the function */
304
- ZEND_UNREACHABLE ("No support for net_get_interfaces" );
304
+ ZEND_UNREACHABLE ();
305
305
#endif
306
306
}
307
307
/* }}} */
You can’t perform that action at this time.
0 commit comments