Re: [PHP-DEV] Is there any value in having functions defined which do nothing.

2001-07-10 Thread jimw
from a support perspective, it might be nice to have a quasi-implemented type of function that returns false for function_exists but if the function is actually called, it would return an error like imagecopyresampled() does (that is, a more specific error than "function not supported"). that woul

[PHP-DEV] Is there any value in having functions defined which do nothing.

2001-07-10 Thread Jeremy Bettis
Why is the habit of PHP modules to define functions that might or might not work depending on library dependancies. For example, ImageCopyResampled gives this error if libgd < 2.0: "ImageCopyResampled required libgd 2.0" But that makes this code useless: if (function_exists('ImageCopyResampled'