ID: 13775 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: GD related Operating System: Linux - SuSE 7.2 PHP Version: 4.0.6 New Comment:
I can't reproduce this with PHP 4.1.0Rc1 and GD 1.8.4. Which GD version do you have? Previous Comments: ------------------------------------------------------------------------ [2001-10-21 06:58:46] [EMAIL PROTECTED] By the way, as far as verified gd/png support in my build: % egrep -i '(png|gd)' ~root/php_configure.log checking for GDBM support... no checking whether to include GD support... yes checking whether to enable truetype string function in gd... no checking for the location of libpng... yes checking for png_info_init in -lpng... yes checking for gdImageString16 in -lgd... yes checking for gdImagePaletteCopy in -lgd... yes checking for gdImageCreateFromPng in -lgd... yes checking for gdImageCreateFromGif in -lgd... no checking for gdImageWBMP in -lgd... yes checking for gdImageCreateFromJpeg in -lgd... yes checking for gdImageCreateFromXpm in -lgd... yes checking for gdImageCreateTrueColor in -lgd... no checking for gdImageSetTile in -lgd... yes checking for gdImageSetBrush in -lgd... yes checking for gdImageStringFTEx in -lgd... no checking for gdImageColorClosestHWB in -lgd... yes checking for gdImageColorResolve in -lgd... yes checking for gdImageGifCtx in -lgd... no checking for the location of libpng... yes checking for png_create_info_struct in -lpng... yes creating ext/gd/Makefile ------------------------------------------------------------------------ [2001-10-21 06:38:11] [EMAIL PROTECTED] With this code (via Rasmus/php-general): <http://www.php.net/~rasmus/reductor.php> <html> <body bgcolor="#000000"> <font color=#ffffff>Original Image:</font><img src="php.png" align=middle><br clear=left> <?php if(!$ch) $ch='$'; $im = ImageCreateFromPNG('./php.png'); $output = " "; for($y=0;$y<imagesy($im);$y++) { for($x=0;$x<imagesx($im);$x++) { $color = ImageColorsForIndex($im,ImageColorAt($im, $x, $y)); echo "<font size=\"1\" color=\"#"; echo printf("%02x%02x%02x",$color['red'],$color['green'],$color['blue']); echo "\">$ch</font>"; } echo "<br>\n"; } ?> </body></html> Apache stops responding; Nothing is displayed, not even an error. Apache must be restarted to bring it back to life. In the error_log, one sees: [Sun Oct 21 06:10:03 2001] [notice] child pid 28635 exit signal Segmentation fault (11) [Sun Oct 21 06:10:03 2001] [notice] child pid 28634 exit signal Segmentation fault (11) Etc... My php 4.0.6 configure line: ./configure \ --with-config-file-path=/var/www/conf \ --with-gd=/usr/local \ --with-jpeg-dir=/usr/local \ --with-png-dir=/usr/local/ \ --with-tiff-dir=/usr/local \ --with-zlib-dir=/usr \ --with-zlib=/usr \ --with-ttf=/usr/local \ --with-t1lib=/usr/local \ --with-mysql=/usr \ --with-mcrypt=/usr/local \ --with-pdflib=/usr/local \ --with-bz2=/usr/local \ --with-zip=/usr/local \ --with-pspell=/usr/local \ --with-curl=/usr/local \ --with-dom=/usr \ --with-xml \ --enable-magic-quotes \ --enable-ftp \ --with-apache=../apache_1.3.22 > ~root/php_configure.log My Apache 1.3.22 configure line: ./configure \ --prefix=/var/www \ --mandir=/usr/local/man \ --server-uid=www \ --server-gid=www \ --libexecdir=/var/www/modules \ --enable-module=rewrite \ --enable-module=so \ --enable-shared=speling \ --enable-module=ssl \ --activate-module=src/modules/php4/libphp4.a \ --activate-module=src/modules/perl/libperl.a I listed this as graphics related, but I really don't know if it really is. -Brian ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13775&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]