|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-10-18 14:34 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 01:00:01 2025 UTC |
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');