> Describe the symptoms of your problem or bug carefully and clearly.
If I try to work with PNG images using GD, PHP terminates with
Code:
Abort trap: 6 (core dumped)
> Describe the environment in which it occurs (machine, OS, application, whatever). Provide your vendor's distribution and release level (e.g.: “Fedora Core 7â€, “Slackware 9.1â€, etc.).
Code:
uname -a
FreeBSD pups 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 [email]root@mason.cse.buffalo.edu[/email]:/usr/obj/usr/src/sys/GENERIC amd64
Code:
php -v
PHP 5.3.4 with Suhosin-Patch (cli) (built: Dec 21 2010 16:01:02)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.1, Copyright (c) 2005-2010, by mOo
Code:
pkg_info | grep php
php5-5.3.4 PHP Scripting Language
php5-bz2-5.3.4 The bz2 shared extension for php
php5-ctype-5.3.4 The ctype shared extension for php
php5-filter-5.3.4 The filter shared extension for php
php5-gd-5.3.4 The gd shared extension for php
php5-json-5.3.4 The json shared extension for php
php5-mbstring-5.3.4 The mbstring shared extension for php
php5-mcrypt-5.3.4 The mcrypt shared extension for php
php5-mysql-5.3.4 The mysql shared extension for php
php5-mysqli-5.3.4 The mysqli shared extension for php
php5-openssl-5.3.4 The openssl shared extension for php
php5-posix-5.3.4 The posix shared extension for php
php5-session-5.3.4 The session shared extension for php
php5-zip-5.3.4 The zip shared extension for php
php5-zlib-5.3.4 The zlib shared extension for php
phpMyAdmin-3.3.8.1 A set of PHP-scripts to manage MySQL over the web
xcache-1.3.1 A fast and stable php opcode cacher
Code:
pkg_info | grep pecl
pecl-imagick-3.0.1 Provides a wrapper to the ImageMagick/GraphicsMagick librar
pecl-pdflib-2.1.8 A PECL extension to create PDF on the fly
Code:
pkg_info | grep png
png-1.4.4 Library for manipulating PNG images
> Describe the research you did to try and understand the problem before you asked the question.
Googled -- no info.
> Describe the diagnostic steps you took to try and pin down the problem yourself before you asked the question.
Updated and reinstalled everything related to PHP and PNG.
> Describe any possibly relevant recent changes in your computer or software configuration.
Yesterday PHP5 update from ports.
> If at all possible, provide a way to reproduce the problem in a controlled environment.
Not sure about this. I have asked my friends to do tests on their machines, no one reported about problems. One reported that he faced up with the same problem yesterday, today he updated PHP from ports and problem has gone. Also, he noted that he had similar problems with GD and PNG in the past.
Code:
mkdir gd-test; cd gd-test
echo "<?php \$image = imagecreatefrompng('test.png'); ?>" > test.php
fetch -o test.png [url]http://upload.wikimedia.org/wikipedia/commons/7/7a/Basketball.png[/url]
php test.php