|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-12-21 08:18 UTC] serge dot sitnikov at gmail dot com
Description:
------------
PNG support broken, completely. If PHP runs under Apache that will lead to
workers exhaustion.
PHP 5.3.4 on FreeBSD 8.1-RELEASE amd64
array (
'GD Version' => 'bundled (2.0.34 compatible)',
'FreeType Support' => true,
'FreeType Linkage' => 'with freetype',
'T1Lib Support' => true,
'GIF Read Support' => true,
'GIF Create Support' => true,
'JPEG Support' => true,
'PNG Support' => true,
'WBMP Support' => true,
'XPM Support' => true,
'XBM Support' => true,
'JIS-mapped Japanese Font Support' => false,
)
png-1.4.4 Library for manipulating PNG images
Test script:
---------------
$image = imagecreatefrompng('/path/to/my/png/file');
Expected result:
----------------
Image opened.
Actual result:
--------------
Abort trap: 6 (core dumped)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 19:00:02 2025 UTC |
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