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

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

Count Diff
12 (57%)
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
5 (24%)
001+ ** ERROR: process timed out **
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===
2 (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===
1 (5%)
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, bool given in %s/bug77272.php on line 3
005+ NULL
003- bool(false)
1 (5%)
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===