Skip to content

imagedestroy() is deprecated since PHP 8.5, as it has no effect since PHP 8.0 #10

Description

@A-smart-kitten

As far as I can see, upload/server/php/upload.class.php currently includes three calls to the PHP function imagedestroy:

// Free up memory (imagedestroy does not delete files):
@imagedestroy($src_img);
@imagedestroy($new_img);

// Free up memory (imagedestroy does not delete files):
@imagedestroy($image);

This function is deprecated since PHP 8.5, as it has no effect since PHP 8.0.

I'm raising this as an issue rather than submitting a PR, as this file looks like it might be code that's been imported from an external library, so I'm not sure how this extension's maintainers might want to go about resolving this :)

[Cross-reference https://phabricator.wikimedia.org/T413901]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions