Re: Creating one extension version: how?

From: Date: Sun, 11 May 2008 10:29:18 +0000
Subject: Re: Creating one extension version: how?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-37588@lists.php.net to get a copy of this message
hi, On Sun, May 11, 2008 at 12:14 PM, Stefan Esser <stefan.esser@sektioneins.de> 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. > > This is not true. It is possible to create an extension that loads and > works in all PHP versions, but it is a PITA to write it. > > If you really want to do this you need to internally support different > binary versions of PHP and you need to replace the get_module export > with your own code that exports different structs depending on PHP version. > > Ah yes, and you need to load many symbols through the libc because they > might not exist in the PHP version. f.e. globals... And now try the same on windows :) It is also possible to use 2k5/8 binaries with VC6 binaries but that's a call for troubles. It is often possible to do many things (even different architecture support) on unix/linux and sometimes with windows. But we don't support that, that's what I meant with "you can't". I should have said: "You can but it is not supported" :) Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#37588) next »