zend module patch
| From: | (Stig Sæther Bakken) | Date: | Wed, 10 Oct 2001 00:22:52 +0000 |
| Subject: | zend module patch | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67651@lists.php.net to get a copy of this message | ||
Hi,
A while ago, we discussed being able to give more intelligent error
messages when loading extensions compiled with different
configurations/API versions.
Attached is a patch that changes the zend_module_entry type so the
configuration appears first. This way PHP can give more sensible
error messages like "I need thread-safe extensions" or "sorry, this
extension was built in debug mode".
The patch also adds a "version" field to the struct, along with a
zend_get_module_version Zend API function and an optional parameter to
phpversion() for getting the version of a loaded extension.
The downside is that moving zend_module_entry's configuration fields
first can't be done in a backwards-compatible way. This patch breaks
every extension out there (except ext/standard, which is updated), but
it does buy us better BC possibilities in the future.
Comments, opinions?
- Stig
--
Stig Sæther Bakken <ssb@alltheweb.com>
Fast Search & Transfer ASA, Trondheim, Norway