php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37624 Imagepng produces a fatal error
Submitted: 2006-05-29 09:37 UTC Modified: 2006-05-30 08:43 UTC
From: dbarth at gmx dot net Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.1.4 OS: debian woody
Private report: No CVE-ID: None
 [2006-05-29 09:37 UTC] dbarth at gmx dot net
Description:
------------
Hello,

since i am on version 5.1.x my scripts for creating textbased images won't work anymore. as i am calling

imagepng($im_text,$cachefile);

php always crashes with the following errormsg:

 gd-png:  fatal libpng error: zlib error in line xxx

so i upgraded zlib and pnglib, but nothing helped.

did i miss something?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-29 09:46 UTC] mike@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
 [2006-05-30 08:37 UTC] dbarth at gmx dot net
Hello again,

as i was gathering some sourcecodes, i saw that i used

imagepng($im_text,$cachefile,100); (in PHP4 worked fine)

instead of

imagepng($im_text,$cachefile);

so, the errormsg just pointed me to the wrong direction.

thx
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 10:01:32 2024 UTC