Skip to content

thanhle7/image_magician-fix-for-php8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

image_magician-fix-for-php8

All GD functions that accepted resource values parameters prior to PHP 8.0 will now accept \GdImage objects. Similarly, their return values will be \GdImage objects instead of resource. Validation against such values is now revised as followings.

# to solve the problem: "saveImage: This is not a resource"
if ( ! is_resource($this->imageResized) )
should be changed to:
if ( ! is_resource($this->imageResized) && !($this->imageResized instanceOf \GdImage) )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages