[GD 2.1.0] enabling functions or not when a dep is missing
| From: | Pierre | Date: | Tue, 22 Jan 2008 17:16:02 +0000 |
| Subject: | [GD 2.1.0] enabling functions or not when a dep is missing | ||
| Groups: | php.gd.devel | ||
| Request: | Send a blank email to php-gd-devel+get-330@lists.php.net to get a copy of this message | ||
Dear list,
While wokring on the issue #131
(http://bugs.libgd.org/?do=details&task_id=131 c++ binding), we come
to a point to choose whether we should expose the API when the feature
is actually not available. For example, expose the JPEG functions when
the libjpeg is not available. The XPM functions do it already (and it
is the only one) and outputs an error message to stderr when called.
We choosed to do it for the c++ binding as it makes the developers
life easier (no need to recompile an application).
What do you think about doing the same for the standard C functions?
We can even add a return code instead of simply raising an error in
stderr.
Opinions, suggestions and comments welcome!
--
Pierre
http://blog.thepimp.net | http://www.libgd.org