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

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

Count Diff
29 (78%)
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 (14%)
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)
2 (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 (3%)
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/lollipop/php-7.3.7/ext/gd/libgd/gd.c:3122 (tried to allocate 1073741824 bytes) in %s/bug77272.php on line 3