1--TEST--
2libxml_set_external_entity_loader() with non-callable argument
3--EXTENSIONS--
4libxml
5--FILE--
6<?php
7try {
8	libxml_set_external_entity_loader('nonexistent_function');
9} catch (Throwable $e) {
10	echo "Exception: " . $e->getMessage() . "\n";
11}
12?>
13--EXPECT--
14Exception: libxml_set_external_entity_loader(): Argument #1 ($resolver_function) must be a valid callback or null, function "nonexistent_function" not found or invalid function name
15