#28858 [Opn->Csd]: imagejpeg, imagepng etc return value not correct
| From: | nlopess@php.net | Date: | Mon, 21 Jun 2004 11:45:42 +0000 |
| Subject: | #28858 [Opn->Csd]: imagejpeg, imagepng etc return value not correct | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969361489@lists.php.net to get a copy of this message | ||
ID: 28858
Updated by: nlopess@php.net
Reported By: antin dot roskat at zarecons dot net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-06-20 22:06:41] antin dot roskat at zarecons dot net
Description:
------------
At least imagepng, imagejpeg and imagegif have a documented return
value of int. The correct return value should be boolean. Using gettype
on the return value returns "boolean".
Reproduce code:
---------------
$im = imagecreatetruecolor(100,100);
echo gettype(imagejpeg($im));
Expected result:
----------------
I'm expecting to see "integer" echoed (according to the manual).
Actual result:
--------------
Instead I'm seeing "boolean" echoed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28858&edit=1