Bug #53096 [NEW]: imagecopyresized doesn't return TRUE or FALSE

From: Date: Mon, 18 Oct 2010 12:34:32 +0000
Subject: Bug #53096 [NEW]: imagecopyresized doesn't return TRUE or FALSE
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155297@lists.php.net to get a copy of this message
From:             
Operating system: Linux 2.6.35-ARCH
PHP version:      5.3.3
Package:          GD related
Bug Type:         Bug
Bug description:imagecopyresized doesn't return TRUE or FALSE

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 bug report at http://bugs.php.net/bug.php?id=53096&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=53096&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=53096&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=53096&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=53096&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53096&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=53096&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=53096&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=53096&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=53096&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=53096&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=53096&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=53096&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=53096&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=53096&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53096&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53096&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=53096&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=53096&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=53096&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=53096&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=53096&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#155297) next »