php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6885 gdImageCreateFromPng test comes up negative
Submitted: 2000-09-26 03:46 UTC Modified: 2000-09-26 04:52 UTC
From: kingmundi at hotmail dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.2 OS: Rhapsody 5.6 Kernel Release 5.6:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
1 + 16 = ?
Subscribe to this entry?

 
 [2000-09-26 03:46 UTC] kingmundi at hotmail dot com
I compile libpng 1.0.8, zlib, and gd 1.8.3

Within in the gd tar is gddemo.c which makes a gddemo executable.
./gddemo creates a png so I assume that gd is functioning correctly in making pngs.

in the php-4.0.2 directory I run
./configure \
--with-mysql=/usr/local/mysql \
--with-gd=/usr/local/src/gd \
--with-apxs \
--with-png-dir=/usr/local/src/png \
--with-zlib-dir=/usr/local/src/zlib

It never seems to find the png functions.
checking for gdImageCreateFromPng in -lgd... no

And trying to access a php page that is trying to generate a png gives...
<b>Warning</b>:  ImagePng: No PNG support in this PHP build

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-26 04:52 UTC] kingmundi at hotmail dot com
This problem stems from there being a gd.h file that was installed under the Mac OS Server Ten dkpg.  The file was located at
/System/Library/Frameworks/Plot.framework/Versions/A/Headers/gd.h

After removing the file, and rebuilding GD the problem went away.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC