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

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 3 different diffs reported by users for this test.

Count Diff
7 (70%)
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
2 (20%)
001+ Warning: imagecreate(): product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
001- Warning: imagescale():%S product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
003+
004+ Warning: imagescale() expects parameter 1 to be resource, boolean given in %s/bug77272.php on line 3
005+ NULL
003- bool(false)
1 (10%)
001+ 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===