Source
public function __destruct() {
if ( $this->image ) {
if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0.
// We don't need the original in memory anymore.
imagedestroy( $this->image );
}
}
}
public function __destruct() {
if ( $this->image ) {
if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0.
// We don't need the original in memory anymore.
imagedestroy( $this->image );
}
}
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.