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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kingmundi at hotmail dot com
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 18:01:33 2019 UTC