Edit report at https://bugs.php.net/bug.php?id=65948&edit=1
ID: 65948
Comment by: wzis at hotmail dot com
Reported by: wzis at hotmail dot com
Summary: extension and PHP API version mismatch
Status: Wont fix
Type: Bug
Package: *General Issues
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
What do you mean by
"Please use #if #ifdef to make your module built with versions.
I personally have module that works from PHP 4.3 through master, you should be able to do
that."
Do we still need to build the module for each version (x.y) or by using the #if #ifdef now we can
build module on one version, use it on newer versions? Any example?
Previous Comments:
------------------------------------------------------------------------
[2013-10-23 01:39:34] yohgaki@php.net
We only keep API compatibility for "minor" version. That's the way it is.
Please use #if #ifdef to make your module built with versions.
I personally have module that works from PHP 4.3 through master, you should be able to do that.
------------------------------------------------------------------------
[2013-10-23 01:05:31] johannes@php.net
We keep binary compatibility for all z in x.y.z version numbers.
------------------------------------------------------------------------
[2013-10-22 23:49:24] wzis at hotmail dot com
I developed the extension on RHEL 5.5 with PHP 5.1.6, and put the extension .so to RHEL 6.4 with PHP
5.3.3, and the extension failed to load due to VERSION of PHP API mismatch.
------------------------------------------------------------------------
[2013-10-22 23:43:43] wzis at hotmail dot com
Description:
------------
I developed a PHP extension and what to give it to users to use, but the strict version match
limitation caused the extension can't be used by PHP versions that's different from the
version I used to build the extension.
I strongly recommend PHP developers to maintain the API compatibilities, at least within the same
major version, such as version 5. At current stage, because the strict version matching requirement,
it's impossible for us to develop an extension and for it to be usable for other people.
That's too limited.
Expected result:
----------------
The PHP API should maintain compatibility at least within same major version so that third party
developed extension can work for any minor version within the same major version.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65948&edit=1