Edit report at https://bugs.php.net/bug.php?id=53585&edit=1
ID: 53585
Comment by: andy at fud dot org dot nz
Reported by: serge dot sitnikov at gmail dot com
Summary: PNG support broken, Abort trap: 6 (core dumped)
Status: Bogus
Type: Bug
Package: GD related
Operating System: FreeBSD 8.1-RELEASE
PHP Version: 5.3.4
Block user comment: N
Private report: N
New Comment:
I can reproduce this on FreeBSD 8.2-RELEASE (amd64)
the test script is
<?php
$im = imagecreatefrompng("test.png");
echo 'ok';
?>
test.png can be found at https://gg.net.nz/X/test.png
If I have the pdf extension loaded before gd (in extensions.ini) then I get an
abort
--- snip of extensions.ini ---
extension=pdf.so
extension=gd.so
---
% php test.php
zsh: abort (core dumped) php t.php
If I load gd first then the issue goes away
--- snip of extensions.ini ---
extension=gd.so
extension=pdf.so
---
% php test.php
ok
The software versions are:
php5-5.3.8
php5-gd-5.3.8
pdflib-7.0.4
pecl-pdflib-2.1.8
png-1.4.8
Previous Comments:
------------------------------------------------------------------------
[2010-12-21 11:03:06] [email protected]
Then it is definitively not a PHP problem. The tests suite work just fine, and
all PNGs I use for testing as well (from the PNG tests suite and some other).
Please report the issue to FreeBSD or update it as suggested in the other
comment.
------------------------------------------------------------------------
[2010-12-21 10:48:03] serge dot sitnikov at gmail dot com
@[email protected]
You may test on that image, for example:
http://upload.wikimedia.org/wikipedia/commons/7/7a/Basketball.png
------------------------------------------------------------------------
[2010-12-21 10:40:54] serge dot sitnikov at gmail dot com
@[email protected]
Image does not matter. Any PNG image I have tested lead to the same result --
core dumped. Already tested that on two machines.
------------------------------------------------------------------------
[2010-12-21 10:25:30] [email protected]
@serge dot sitnikov at gmail dot com
Please provide the PNG image you use as test.
------------------------------------------------------------------------
[2010-12-21 10:24:38] [email protected]
Not a php problem then :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=53585
--
Edit this bug report at https://bugs.php.net/bug.php?id=53585&edit=1