Pierre Joye wrote:
Hi,
On Sun, May 11, 2008 at 8:04 AM, Hector Santos <[EMAIL PROTECTED]> 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.
Ok, but I would swear I was able to use older 5.x.x 3rd party extensions
that still work with each 5.x.x revision. Was that just Luck? For one
package, I spoke with the author because of a bug I found and he
indicated he had to plans to update his package but I was welcome to do
it. I got the source and noticed no real difference in the extension
basic framework. But nonetheless, the older extension did worked with
newer v5.x.x installations I have so I figure it was possible. No PHP
version mismatch loading error which is what I get.
--
Hector Santos
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php