php8.5
Home/ Manual/ xml / functions/ xml_parser_free

xml_parser_free

PHP function Deprecated as of PHP 8.5.0 Edit on GitHub ✎

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

Free an XML parser

Function-8-5-0

Description

xml_parser_free(XMLParser $parser): bool

0-dead-function

Frees the given XML parser.

Caution

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.

Parameters

parser

A reference to the XML parser to free.

Return Values

Success

Changelog

VersionDescription
8.5.0This function has been deprecated.

Source: reference/xml/functions/xml-parser-free.xml · from the official PHP manual (php/doc-en)