From: c-dilla at gmx dot ch
Operating system: SuSe 8.2
PHP version: 4.3.2
PHP Bug Type: GD related
Bug description: Segmentation Fault after ImageCreate on Png

Description:
------------
hey,
i want to do
ImageString ($im, 10, 5, 5, "..........", $text_color);
ImagePng ($im)
i get a Segmentation fault in Apache error log
Apache version 1.3.28
gdlib 2.0.15
libpng 1.2.5
php 4.3.2 Stable

everything self compiled. i tried to compile a bunch of other versions on
gd like 2.0.10, but got no better result


Reproduce code:
---------------
<?
header ("Content-type: image/png");
$im = ImageCreate (650, 100)
or die ("Auf diesem Server funktioniert die Erstellung von PNG Grafiken
nicht");
$background_color = ImageColorAllocate ($im, 255, 25, 255);
$text_color = ImageColorAllocate ($im, 233, 255, 91);
ImageString ($im, 10, 5, 5, "Auf diesem Server funktioniert die
Erstellung von PNG Grafiken", $text_color);
ImagePng ($im);
?>

Expected result:
----------------
nothing happens. Segmentation faul of a Child process in Apache error_log


--
Edit bug report at [url]http://bugs.php.net/?id=24975&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24975&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24975&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24975&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24975&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24975&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24975&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24975&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24975&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24975&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24975&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24975&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24975&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24975&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24975&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24975&r=gnused[/url]