--TEST-- Bug #71592 (External entity processing never fails) --EXTENSIONS-- xml --FILE-- ]>

&pic;

XML; $parser = xml_parser_create_ns('UTF-8'); xml_set_external_entity_ref_handler($parser, function () { return false; }); xml_parse($parser, $xml); var_dump(xml_get_error_code($parser) === XML_ERROR_EXTERNAL_ENTITY_HANDLING); ?> --EXPECT-- bool(true)