sto ottenendo l'avvertimento: Call-time pass-by-reference has been deprecated
per le seguenti righe di codice:avvertimento PHP: Call-time pass-by-di riferimento è stato deprecato
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;
}
Che cosa provoca e come risolvere il problema?
Rif: [Riferimento - Che cosa significa questo errore in PHP?] (Http://stackoverflow.com/q/12769982/367456) – hakre
Related pagina di manuale: [Passaggio per riferimento ] (http://php.net/manual/en/language.references.pass.php) – Palec