Test: /ext/gd/tests/bug77272.phpt - Version 7.4.29        

Bug #77272 imagescale() may return image resource on failure
Submitted: 2018-12-09 15:28:50 Modified: 2019-01-10 12:11:01
From: cmb Assigned: cmb
Status: Closed Package: GD related
PHP Version: 7.2.13 OS: *

There are 2 different diffs reported by users for this test.

Count Diff
6 (86%)
001+ mmap() failed: [12] Cannot allocate memory 002+ 003+ mmap() failed: [12] Cannot allocate memory 004+ 001- Warning: imagescale():%S product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully 002- in %s on line %d 003- bool(false) 004- ===DONE=== 005+ Fatal error: Out of memory (allocated 270532608) (tried to allocate 1073741824 bytes) in %s/bug77272.php on line 3
1 (14%)
001+ Killed 002+ 003+ Termsig=9 001- Warning: imagescale():%S product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully 002- in %s on line %d 003- bool(false) 004- ===DONE===