--TEST-- Bug #72793: xml_parser_free leaks mem when execute xml_set_object --EXTENSIONS-- xml --FILE-- parser = xml_parser_create(); xml_set_object($this->parser, $this); } function parse($data) { xml_parse($this->parser, $data); } function free(){ xml_parser_free($this->parser); } } $xml_test = ''; $xml_parser = new xml(); $xml_parser->parse($xml_test); $xml_parser->free(); ?> ===DONE=== --EXPECTF-- Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to xml_set_*_handler() functions in %s on line %d ===DONE===