Edit report at http://bugs.php.net/bug.php?id=51556&edit=1
ID: 51556 Updated by: ka...@php.net Reported by: luk-4u at hotmail dot com Summary: imagepng,imagegif not function properly -Status: Open +Status: Closed Type: Bug Package: GD related Operating System: centos5 x86_64 GNU/Linux PHP Version: 5.2.6 -Assigned To: +Assigned To: kalle Previous Comments: ------------------------------------------------------------------------ [2010-04-15 13:33:01] luk-4u at hotmail dot com thanks , ur sugggestion is correct. ------------------------------------------------------------------------ [2010-04-15 10:59:07] paj...@php.net Works just fine here, with or without output buffering. Please try using a recent PHP version as well, 5.2.6 is quite old (5.2.13 is the latest and recommended version for 5.2.x). ------------------------------------------------------------------------ [2010-04-15 10:41:30] luk-4u at hotmail dot com test.php: <?php ob_start(); //ob_end_clean(); header('Content-type: image/png'); imagepng(imagecreatefrompng('/home/webroot/a.png')); //imagepng(imagecreatefrompng('/home/webroot/a.png'), dirname(__FILE__).'/test.png'); //imagegif(imagecreatefrompng('/home/webroot/a.png')); //imagejpeg(imagecreatefrompng('/home/webroot/a.png')); exit; ?> The script is as sime as above, and the environment is nginx+fastcgi(php5.2.6), assume u hv a vhost setted up and the file /home/webroot/a.png is available, just access it through http://ur_vhost_name.com/test.php 3ks ------------------------------------------------------------------------ [2010-04-15 08:56:32] paj...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2010-04-15 06:46:02] luk-4u at hotmail dot com change php ver ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51556 -- Edit this bug report at http://bugs.php.net/bug.php?id=51556&edit=1