From: herps at raqtweak dot com
Operating system: Redhat 6.x
PHP version: 4.3.6
PHP Bug Type: GD related
Bug description: GD bundle gives Apache Segment Fault
Description:
------------
I am using PHP 4.3.6 with --with-gd
It is your BUNDLES GD 2.0.22.
Everything shows fine on a phpinfo.
But when I run the following script (listed below) to test my GD, I get a
"[Tue Apr 27 01:28:19 2004] [notice] child pid 9034 exit signal
Segmentation fault (11)" in /var/log/httpd/error
===============[Script]===============
<?php
header ("Contenttype: image/png");
$im = @ImageCreate (50, 100)
or die ("Cannot create a new GD image.");
$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);
?>
===============[Script]===============
I read about a system GD, but I am using the bundled GD...
Any clue what so ever?
I compiled with --with-png=/usr/lib and without, no difference...
--
Edit bug report at http://bugs.php.net/?id=28173&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28173&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28173&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28173&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28173&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28173&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28173&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28173&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28173&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28173&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28173&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28173&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28173&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28173&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28173&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28173&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28173&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28173&r=float