Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57866 invoked from network); 11 May 2008 10:14:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2008 10:14:00 -0000 Authentication-Results: pb1.pair.com header.from=stefan.esser@sektioneins.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=stefan.esser@sektioneins.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sektioneins.de from 85.214.103.31 cause and error) X-PHP-List-Original-Sender: stefan.esser@sektioneins.de X-Host-Fingerprint: 85.214.103.31 h1332034.stratoserver.net Linux 2.6 Received: from [85.214.103.31] ([85.214.103.31:21072] helo=h1332034.stratoserver.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/2B-34108-6E6C6284 for ; Sun, 11 May 2008 06:13:58 -0400 Received: from Very-Black-Mac.local (cable-81-173-167-69.netcologne.de [81.173.167.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by h1332034.stratoserver.net (Postfix) with ESMTP id D4C9BA243BA; Sun, 11 May 2008 12:11:45 +0200 (CEST) Message-ID: <4826C6EC.7010808@sektioneins.de> Date: Sun, 11 May 2008 12:14:04 +0200 User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Pierre Joye CC: Hector Santos , internals@lists.php.net References: <48268C66.5090501@isdg.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Creating one extension version: how? From: stefan.esser@sektioneins.de (Stefan Esser) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, >> 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... Stefan Esser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgmxuwACgkQSuF5XhWr2ni3VgCglNM7Ve6FXfHhG8vKcXyRCgMy tMwAnj6Q+G0cZEV6bzSi4yPQuEJa9zgl =WCeY -----END PGP SIGNATURE-----