ID:               32389
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jbaou at datahost dot gr
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Slackware 10
 PHP Version:      5.0.3
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


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

[2005-03-21 04:26:07] jbaou at datahost dot gr

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 this bug report at http://bugs.php.net/?id=32389&edit=1

Reply via email to