php imagepng 錯誤

2020053015:04

執行imagepng($image_p, $dest_filename) 時出現錯誤:
imagepng(): gd-png error: cannot allocate libpng main struct ....

解決:
yum remove libpng*
yum install libpng*

重新 make mod_php