php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5793 function_exists() doesnt work with Imagefunctions
Submitted: 2000-07-26 13:59 UTC Modified: 2000-07-26 15:06 UTC
From: g dot tenchio at telco-tech dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: g dot tenchio at telco-tech dot de
New email:
PHP Version: OS:

 

 [2000-07-26 13:59 UTC] g dot tenchio at telco-tech dot de
function_exists() doesnt work with Imagefunctions like ImagePng, ImageGif, ImageJpeg and so on because all of these functions are defined even when i compile with only gif support.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 14:21 UTC] stas@php.net
function_exists works. If it says it's there, it's there. As I see in gd.c file, these functions are always defined, but not always would work. If you don't like it, submit change request.
 [2000-07-26 15:06 UTC] hholzgra@php.net
the functions are there even if the
format is not supported just to
give an error message to tell you
that the feature is not supported

this is in there because otherwise
the "undefined function" error
messages would confuse users

use function imagetypes to test
for available formats
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 22:00:01 2026 UTC