From:             jbaou at datahost dot gr
Operating system: Slackware 10
PHP version:      5.0.3
PHP Bug Type:     Reproducible crash
Bug description:  imagecreatefrompng terminates connection

Description:
------------
I am trying to create thumbs from image types: jpg,gif and png.    
jpg and gif work OK.    
   
While trying to create a png thumb i get the following error:    
Connection to host jbaou.bahaha.org is broken.  
 
## php -m 
[PHP Modules] 
bcmath 
bz2 
calendar 
ctype 
curl 
dba 
dbase 
dbx 
dio 
dom 
exif 
filepro 
ftp 
gd 
gettext 
gmp 
iconv 
imap 
libxml 
mbstring 
mhash 
mime_magic 
mysql 
ncurses 
openssl 
pcre 
posix 
session 
shmop 
SimpleXML 
sockets 
SPL 
SQLite 
standard 
sysvmsg 
sysvsem 
sysvshm 
tokenizer 
wddx 
xml 
yp 
Zend Optimizer 
zlib 
 
[Zend Modules] 
Zend Extension Manager 
Zend Optimizer 
 
## ./configure 
http://jbaou.bahaha.org/phpinfo.php 

Reproduce code:
---------------
if ($ext == ".png") {
$im = imagecreatefrompng($image); //fe
$thumb = imagecreatetruecolor($thumbWidth, $thumbHeight);
ImageCopyResampled($thumb, $im, 0, 0, 0, 0, $thumbWidth, $thumbHeight,
$imageDim[0], $imageDim[1]);
imagepng($thumb, $thumbPath.$imgName);
imagedestroy($im);
}

alt: http://jbaou.bahaha.org/browser.phps 
[method makeThumb($image)]

Expected result:
----------------
a thumbnail :D  

Actual result:
--------------
While trying to create a png thumb i get the following error:    
Connection to host jbaou.bahaha.org is broken.  

-- 
Edit bug report at http://bugs.php.net/?id=32389&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32389&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32389&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32389&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32389&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32389&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32389&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32389&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32389&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32389&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32389&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32389&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32389&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32389&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32389&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32389&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32389&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32389&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32389&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32389&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32389&r=mysqlcfg

Reply via email to