array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.xml-parser-free.php', 1 => 'xml_parser_free', ), 'up' => array ( 0 => 'ref.xml.php', 1 => 'XML パーサ 関数', ), 'prev' => array ( 0 => 'function.xml-parser-create.php', 1 => 'xml_parser_create', ), 'next' => array ( 0 => 'function.xml-parser-get-option.php', 1 => 'xml_parser_get_option', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/xml/functions/xml-parser-free.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
xml_parser_free — XML パーサを解放する
注意:
この関数を実行しても何も起こりません。PHP 8.0.0 より前のバージョンでは、この関数はリソースを閉じるのに使われていました。
指定した XML パーサ parser
を解放します。
パースが終了した際、
xml_parser_free() 関数を呼び出すのに加えて、
PHP 8.0.0 より前のバージョンでは
オブジェクトがパーサのリソースを参照している場合に、
メモリリークを避けるために parser
の参照を
明示的に unset することも必要になっています。
parser