From: [EMAIL PROTECTED] Operating system: windows 2000 PHP version: 4.3.0 PHP Bug Type: GD related Bug description: GD only returns garbage characters
All php exemples on using GD library returns no image but trash characters like <?php header ("Content-type: image/png"); $im = @imagecreate (50, 100) or die ("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate ($im, 255, 255, 255); $text_color = imagecolorallocate ($im, 233, 14, 91); imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng ($im); ?> returns PNG IHDR2d&PLTE[˝ there is error reported in my log. I'm using Apache 1.3.26, PHP 4.3, GD 2 and windows 2000. my php.ini is configured ok, the phpinfo() returns that GD is installed and jpeg, png and stuff are supported. Could this be just a misconfiguration? Or something else? -- Edit bug report at http://bugs.php.net/?id=21832&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21832&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21832&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21832&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21832&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21832&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21832&r=support Expected behavior: http://bugs.php.net/fix.php?id=21832&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21832&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21832&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21832&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21832&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21832&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21832&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21832&r=gnused