Edit report at http://bugs.php.net/bug.php?id=53096&edit=1
ID: 53096
User updated by: yugenekr at gmail dot com
Reported by: yugenekr at gmail dot com
Summary: imagecopyresized doesn't return TRUE or FALSE
-Status: Feedback
+Status: Open
Type: Bug
Package: GD related
Operating System: Linux 2.6.35-ARCH
PHP Version: 5.3.3
Block user comment: N
New Comment:
Thanks a lot, I was totally stupid not using error_reporting(-1).
After seeing errors (not a jpg file and execution time exceeded), I just
had to
1.check if I process a real image/jpeg file
2.use ini_set('max_execution_time', '60');
Previous Comments:
------------------------------------------------------------------------
[2010-10-19 12:55:14] [email protected]
Or please provide one image and script to reproduce your problem (one of
the 400~ failing).
------------------------------------------------------------------------
[2010-10-19 12:44:03] uramihsayibok at gmail dot com
Run your script with error_reporting(-1) and display_errors on. Look for
error
messages.
Are you hitting a memory limit? Up memory_limit and see if that makes a
difference. If you aren't cleaning up variables (eg, using
imagedestroy()) you
should do so.
------------------------------------------------------------------------
[2010-10-18 14:34:31] yugenekr at gmail dot com
Description:
------------
I'm getting about 650 pictures in bytes by soap and creating previews
for those
pictures. Script works perfectly on php 5.3.2-2 (Linux Debian testing),
but stops
unexpectedly on php 5.3.3 without any error.
I've found that script stops on function imagecopyresized. (pls, see
test script
example) - doesn't return anything.
Test script:
---------------
if(imagecopyresized($imageResized, $imageTmp, 0, 0, 0, 0, $newWidth,
$newHeight, $width, $height)){
echo "imagecopyresized true";
}else{
echo "imagecopyresized FALSE";
}
Expected result:
----------------
1. All pictures and previews stored. (1300 files for both).
2. function imagecopyresampled return something
Actual result:
--------------
1. Only about 880 files are stored.
2. function imagecopyresampled doesn't return anything
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53096&edit=1