Bug #14579 Updated: ImageTypes() returns no supported Image Types

From: Date: Sun, 03 Mar 2002 19:32:46 +0000
Subject: Bug #14579 Updated: ImageTypes() returns no supported Image Types
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1563@lists.php.net to get a copy of this message
ID: 14579 Updated by: jamie@jamiebecker.com Reported By: alex.killing@gmx.de Status: Open Bug Type: GD related Operating System: RedHat6.2 PHP Version: 4.1.0 New Comment: We have the same issue on both Red Hat 7.2 and FreeBSD; there has been some discussion on the Typo3 mailing list (http://www.typo3.com) as well -- apparently there are others who have experienced this. It appears to occur at a minimum in 4.1.0 and 4.1.2, but not <=4.0.6 Previous Comments: ------------------------------------------------------------------------ [2002-02-14 13:48:19] alex.killing@gmx.de In this case, the problem is gif support related. As I wrote php_info() returns that gif support is enabled, but ImageTypes() does not. This absolutely makes no sense to me. ------------------------------------------------------------------------ [2002-02-14 10:52:48] magnusj@exense.com I have tested this on several different versions of PHP and GDLib and it doesn't work if the configure doesn't find your libpng and libjpeg. If you carefully read the output of the configure script you realize that maybe libpng and libjpeg isn't found even if you have them installed in default locations. I have tested this both on RedHat7.1 and SuSE7.3 and I had to specify the paths myself to make it work. './configure' '--with-apache=../apache_1.3.23' '--with-zlib-dir=/usr/lib' '--with-ftp' '--with-png-dir=/usr/lib' '--with-jpeg-dir=/usr/lib' '--with-gd=../gd-1.8.4' '--disable-debug' '--with-sybase-ct=/opt/sybase-11.9.2' If I leave out --with-png-dir and --with-jpeg-dir imagetypes() returns nothing. You can also check the output of phpinfo() and you will see that the GD Support is enabled but it doesn't say anything about PNG and JPEG support being enabled. So don't forget to specify your libpng and libjpeg dirs... ------------------------------------------------------------------------ [2002-02-12 11:09:00] alex.killing@gmx.de Sorry for the late feedback. No Error after removing the @. Reopened. ------------------------------------------------------------------------ [2002-01-09 02:10:22] lobbin@php.net No feedback. Closing. ------------------------------------------------------------------------ [2001-12-19 08:56:58] sander@php.net Remove the @ before ImageTypes. Does it print a error now? ------------------------------------------------------------------------ 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 http://bugs.php.net/14579 -- Edit this bug report at http://bugs.php.net/?id=14579&edit=1

« previous php.bugs (#1563) next »