PHP警告:不推荐使用Call-time pass-by-reference
我收到警告:Call-time pass-by-reference has been deprecated
对于以下代码行:
function XML() { $this->parser = &xml_parser_create(); xml_parser_set_option(&$this->parser, XML_OPTION_CASE_FOLDING, false); xml_set_object(&$this->parser, &$this); xml_set_element_handler(&$this->parser, 'open','close'); xml_set_character_data_handler(&$this->parser, 'data');}function destruct() { xml_parser_free(&$this->parser);}function & parse(&$data) { $this->document = array(); $this->stack = array(); $this->parent = &$this->document; return xml_parse(&$this->parser, &$data, true) ? $this->document : NULL;}
它是什么原因以及如何解决它?
繁花不似锦
芜湖不芜