xml_parser_free

(PHP 4, PHP 5, PHP 7, PHP 8)

xml_parser_freeFree an XML parser

Beschreibung

xml_parser_free(XMLParser $parser): bool

Hinweis:

Diese Funktion hat keine Auswirkung. Vor PHP 8.0.0 wurde sie verwendet, um die Ressource zu schließen.

Frees the given XML parser.

Achtung

In addition to calling xml_parser_free() when the parsing is finished, prior to PHP 8.0.0, it was necessary to also explicitly unset the reference to parser to avoid memory leaks, if the parser resource is referenced from an object, and this object references that parser resource.

Parameter-Liste

parser
A reference to the XML parser to free.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Changelog

Version Beschreibung
8.0.0 parser erwartet nun eine XMLParser-Instanz; vorher wurde eine gültige xml-Ressource erwartet.
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top