Issue Task Closed

#107299Remove `xml_parser_free` and `imagedestroy()`function calls

Stefan Bürk 08/16/25, 11:48 updated 12/02/25, 13:58

Description

Following function calls has been deprecated with PHP8.5 as
they has no effect since PHP8.0:

  • `xml_parser_free()`
  • `imagedestroy()`

From [1]:

  • xml_parser_create() and xml_parser_create_ns() will now return an XMLParser
    object rather than a resource. The xml_parser_free() function no longer has
    an effect, instead the XMLParser instance is automatically destroyed if it
    is no longer referenced.
  • The GD extension now uses GdImage objects as the underlying data structure
    for images, rather than resources. The imagedestroy() function no longer
    has an effect; instead the GdImage instance is automatically destroyed
    if it is no longer referenced.

[1] https://www.php.net/manual/en/migration80.incompatible.php

Reviews 3