Re: Creating one extension version: how?
| From: | Pierre Joye | Date: | Sun, 11 May 2008 08:57:04 +0000 |
| Subject: | Re: Creating one extension version: how? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37582@lists.php.net to get a copy of this message | ||
Hi,
On Sun, May 11, 2008 at 8:04 AM, Hector Santos <hsantos@isdg.net> wrote:
> How can you prepare my new extension source code and/or links so that the
> DLL can support all the PHP 5.x.x versions?
You can't. But you can have one source version which can be built
against all PHP versions.
> I have been trying to figure this out, reading/googling, etc, but in the
> mean time what I had to do was recompile the extension for all PHP releases,
> 5.04, 5.10, 5.12, 5.25 and now 5.26 and provide each one for users to select
> during installation of the extension.
The rules are relatively simple, each minor (5.1.x, 5.2.x, 5.3.x)
upgrade breaks binary compatibility. That means you will have to
rebuild your extension to get it work with a given version. So the way
you choosed now is the right one. Please note that you aslo need one
for debug and non debug version.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org