ID:               38390
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bigmrpoo at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Documentation problem
 Operating System: WinXP
 PHP Version:      Irrelevant
 New Comment:

It returns true on success and false on error. That's why the return
value is defined as bool.

The only case where it failed is when you try to pass zero (or
negative) width/height.

And finally, which issues are you talking about?


Previous Comments:
------------------------------------------------------------------------

[2006-08-08 23:20:35] bigmrpoo at yahoo dot com

Description:
------------
The documentation page for imagecopyresized does not describe the
return value other than stating it is a boolean value.

If this is an indicator of success or failure of the operation, then
clients of this function must be programmed to behave correctly in case
of failure. To do this, we must also know what situations will cause it
to fail, and what side effects (if it is not atomic) occur if the
operation fails.


I tried to point out the clients of this function need to be aware of
these issues in the comments for that page, but one of the editors
decided to take my points as a question, not as raising a "gotcha" for
the users of the function... So now im posting it here.

Reproduce code:
---------------
http://au2.php.net/manual/en/function.imagecopyresized.php



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38390&edit=1

Reply via email to