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

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

Count Diff
12 (63%)
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
3 (16%)
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===
1 (5%)
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) at /home/pi/php-7.2.16/ext/gd/libgd/gd.c:3122 (tried to allocate 1073741824 bytes) in %s/bug77272.php on line 3
1 (5%)
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+ Termsig=11
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+ 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===