Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37588 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60093 invoked from network); 11 May 2008 10:29:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2008 10:29:23 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.225 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.225 rv-out-0506.google.com Received: from [209.85.198.225] ([209.85.198.225:55286] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/8B-34108-08AC6284 for ; Sun, 11 May 2008 06:29:22 -0400 Received: by rv-out-0506.google.com with SMTP id g37so2040182rvb.23 for ; Sun, 11 May 2008 03:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=c0no910PozPy6f6SIccZchDxOQ/jptQ9h6VgSjz5A2Q=; b=HJ2iiLrqylkFF+PEtTa0EOBeqdKzY9WhsSOY+U5yNa8EBj4RDz9DOlaVrMFc/N7Sg9uKoAEtP5hv0AANdTn5YkSEf/vpuVp8Qp3Sqpq9woGHNATjJkd5EH6OwOwgdLlW22B3i17gp6+pUpex3LrZXtO6LhfUEZcYXG5UKgDsz/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qTr7d0WKupTdRJeLpoMAR5Cl7CAqvYBaAmj0Lnx/f2X2lF+mZWEKiMRYab7iYE+Vw0kQdQIpSLkxx7orcWNT/trmyeNC180zvBmfxG2lam/zTiStSsTJy5G1XgYaNtawxvWxDlzKlvQuImIWmAQ31N8w0Shia8uKf5Ix2+yt7eM= Received: by 10.141.163.12 with SMTP id q12mr3105096rvo.190.1210501758074; Sun, 11 May 2008 03:29:18 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Sun, 11 May 2008 03:29:18 -0700 (PDT) Message-ID: Date: Sun, 11 May 2008 12:29:18 +0200 To: "Stefan Esser" Cc: "Hector Santos" , internals@lists.php.net In-Reply-To: <4826C6EC.7010808@sektioneins.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48268C66.5090501@isdg.net> <4826C6EC.7010808@sektioneins.de> Subject: Re: [PHP-DEV] Creating one extension version: how? From: pierre.php@gmail.com ("Pierre Joye") hi, On Sun, May 11, 2008 at 12:14 PM, Stefan Esser 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