- xml_set_default_handler: documentation ( source)
- xml_parser_create: documentation ( source)
<?php
$parser = xml_parser_create();
xml_set_default_handler($parser, "this is not a valid callback");
function only_accepts_callables(callable $value) { }
only_accepts_callables("this is not a valid callback");