I just upgraded from libexif 0.5.12 to 0.6.11 and found
php extension based on libexif doesn't compile anymore,
partly due to exif_entry_get_value() prototype changes.
It would be nice to be able to detect the library
verison from some define in the public header files, like
#define LIBEXIF_VERSION_ID 00611
#define LIBEXIF_VERSION_MAJOR 0
#define LIBEXIF_VERSION_MINOR 6
#define LIBEXIF_VERSION_PATCH 11
This would allow simple configure tests without
checking for actual features (like 'which prototype of
exif_entry_get_value() do i have to use') and
conditional code that supports both old and new API
versions in a flexible and convenient way
Log in to post a comment.