From: zia_roshni at hotmail dot com Operating system: windows 2000 server PHP version: 4.3.5 PHP Bug Type: *General Issues Bug description: problem in imagecreate function
Description: ------------ i m trying to use imgarecreate function... and i think there is no problem in gd... plz tell me soon about this problem i m waiting Reproduce code: --------------- Header('Content-Type: image/jpg'); $image = ImageCreate(100 , 100); $black = ImageColorAllocate($image, 0 , 0 , 0); $white = ImageColorAllocate($image, 255 , 255 , 255); ImageLine($image, 0, 0, 99, 99, $black); ImageJPEG($image); ImageDestroy($image); Expected result: ---------------- i m trying this code and i expected the resulted page has a black line Actual result: -------------- but the output is like this... JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality C $.' ",#(7),01444'9=82<.342C 2!!22222222222222222222222222222222222222222222222222dd" ĵ}!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ĵw!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ?> -- Edit bug report at http://bugs.php.net/?id=27918&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27918&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27918&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27918&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27918&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27918&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27918&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27918&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27918&r=support Expected behavior: http://bugs.php.net/fix.php?id=27918&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27918&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27918&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27918&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27918&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27918&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27918&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27918&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27918&r=float