PHP :: Bug #65171 :: imagescale() fails
| Bug #65171 | imagescale() fails | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2013-07-01 07:50 UTC | Modified: | 2014-10-15 16:50 UTC |
|
||||||||||
| From: | susisoy at 163 dot com | Assigned: | remi (profile) | |||||||||||
| Status: | Closed | Package: | GD related | |||||||||||
| PHP Version: | 5.5.0 | OS: | CentOS 6.4 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2013-07-01 07:50 UTC] susisoy at 163 dot com
Description:
------------
imagescale() function cannot be used.
Test script:
---------------
<?php
$im = imagecreatefrompng('1.png');
$im2 = imagescale($im, 100);
imagepng($im2);
Expected result:
----------------
Warning: imagescale(): gd warning: one parameter to a memory allocation
multiplication is negative or zero, failing operation gracefully in
/mnt/hgfs/F/Test/index.php on line 3
Warning: imagepng() expects parameter 1 to be resource, boolean given in
/mnt/hgfs/F/Test/index.php on line 4
Actual result:
--------------
...
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2013-07-02 18:46 UTC] aharvey@php.net
-Summary: PHP 5.5.0 +Summary: imagescale() fails -PHP Version: master-Git-2013-07-01 (Git) +PHP Version: 5.5.0
[2013-12-31 16:04 UTC] matteosistisette at gmail dot com
[2014-10-15 16:50 UTC] remi@php.net
-Assigned To: +Assigned To: remi
[2014-10-15 16:50 UTC] remi@php.net
[2014-10-15 16:58 UTC] richard at sublogic dot se
[2014-10-15 17:19 UTC] remi@php.net
-Status: Assigned +Status: Closed