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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 03:01:29 2024 UTC