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

Reply via email to