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

History 310

  1. Stefan Bürk changed description 08/16/25, 11:48

  2. Gerrit Code Review pushed patch set 1 for main to change 90420 status New Under Review 08/16/25, 13:18

  3. Gerrit Code Review pushed patch set 2 for main to change 90420 08/16/25, 13:21

  4. Gerrit Code Review pushed patch set 1 for 13.4 to change 90421 08/16/25, 13:21

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 90422 08/16/25, 13:31

  6. Gerrit Code Review pushed patch set 3 for main to change 90420 08/16/25, 16:14

  7. Gerrit Code Review pushed patch set 2 for 12.4 to change 90422 08/16/25, 16:14

  8. Gerrit Code Review pushed patch set 2 for 13.4 to change 90421 08/16/25, 16:15

  9. Stefan Bürk commented and changed status Under Review Resolved done 0 % 100 % 08/17/25, 22:35

    Applied in changeset commit:608c97671ec5ddf84c8ec7ebc4e8356eb6ea5ad4.

  10. Benni Mack changed status Resolved Closed 12/02/25, 13:58