Re: function_exists() user note
| From: | Jani Taskinen | Date: | Mon, 27 Nov 2000 09:09:10 +0000 |
| Subject: | Re: function_exists() user note | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-39201@lists.php.net to get a copy of this message | ||
On Sat, 25 Nov 2000, Jon Parise wrote:
>Does anyone have any input on manual annotation 7094?
>
> function_exists() doesnt work with ImagePng, ImageGif, ImageJpeg
> because all functions are defined even if compiled only with gif
> support.
>
>I don't know enough about that section of code to determine whether or
>not this behavior is correct.
You could always use imagetypes() function to check which image-types
are supported. But to be consistent the functions shouldn't be defined if
the imagetype isn't supported, IMHO.
Should this be changed or not?
--Jani