ID:               29568
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bram at x-plose dot be
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: debian
 PHP Version:      4.3.8
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2004-08-08 04:29:32] bram at x-plose dot be

Description:
------------
When i open an php script that uses GD it shows an segmentation fault
in error.log 

Server software: Apache/1.3.26 (deb package) (Unix) Debian GNU/Linux
PHP/4.3.8 

The script is comming from php.net so i dont supose there's an error in
it.

I included /usr/local/lib/php in php.ini and i added extension = gd.so

'./configure' '--with-jpeg-dir=../jpeg-6b/' '--with-pdflib'
'--with-tiff-dir=../tiff-v3.6.1/' '--with-png-dir=../libpng-1.2.5/'
'--with-zlib-dir=../zlib-1.1.4/' '--enable-static-pdflib'
'--enable-gd-imgstrttf' '--with-gd' '--with-mysql' '--with-apxs'
'--enable-fast-cgi-redirect'
'--with-freetype-dir=/usr/local/freetype2/' '--with-iconv'
'--with-gettext' 



Reproduce code:
---------------
<?php
   header("Content-type: image/png");
   $string = $_GET['text'];
   $im    = imagecreatefrompng("banners/bannerxplose.test.png");
   $orange = imagecolorallocate($im, 220, 210, 60);
   $px    = (imagesx($im) - 7.5 * strlen($string)) / 2;
   imagestring($im, 3, $px, 9, $string, $orange);
   imagepng($im);
   imagedestroy($im);
?>


Actual result:
--------------
I only get, Cant find server and in error.log i find
[Sun Aug  8 04:12:51 2004] [notice] child pid 24310 exit signal
Segmentation fault (11)
[Sun Aug  8 04:12:51 2004] [notice] child pid 2085 exit signal
Segmentation fault (11)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29568&edit=1

Reply via email to