Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50245 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50127 invoked from network); 16 Nov 2010 11:35:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2010 11:35:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 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.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:64643] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/D4-25603-46C62EC4 for ; Tue, 16 Nov 2010 06:35:01 -0500 Received: by fxm13 with SMTP id 13so356376fxm.29 for ; Tue, 16 Nov 2010 03:34:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=wNNVseT8px2jPeuUmjtpGN+4w3MPYW+62ncaS9FfSss=; b=Eqm2h9tvmbdgrqxZBQslX2tNOL9mvZj9mN3WHgQy+u1I7CD4+obDpOhOVfCE/iT5WK mmyLBkPzq3+GTOK5Ldhit6VJ7vHWIdNjLEdCCqDAWyOcrDFVu2r40n+mvYA9G/toqnnc oO5F3vrkD7tvgw1oZ8xmD0uJGzB2XXj1eH/is= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=r1xJW9BPb2qiDe4Zr0raa65ae0+XyorJ9J6Rj5FWbUlMmG3CSrcYkXxKr5zQ7Rkwy1 NM4eMTxdXi/mjuabolECkFNGplmk1pAJrL5HFm45Df6cZwkQCdCQVN/zwowzv6Vya9V3 rnk4lRWdYn3nDR3lErP4Q6m/AURLb5RZHiZe8= MIME-Version: 1.0 Received: by 10.223.107.66 with SMTP id a2mr5745956fap.92.1289907296637; Tue, 16 Nov 2010 03:34:56 -0800 (PST) Received: by 10.223.96.7 with HTTP; Tue, 16 Nov 2010 03:34:56 -0800 (PST) In-Reply-To: <4CE22181.8090904@lerdorf.com> References: <4CE03E41.9030805@lerdorf.com> <8757232E56758B42B2EE4F9D2CA019C9086B69@US-EX2.zend.net> <4CE10E8E.3070901@lerdorf.com> <4CE206C0.5070701@sugarcrm.com> <8757232E56758B42B2EE4F9D2CA019C908A06A@US-EX2.zend.net> <4CE215A3.30606@lerdorf.com> <4CE220CB.5090005@sugarcrm.com> <4CE22181.8090904@lerdorf.com> Date: Tue, 16 Nov 2010 12:34:56 +0100 Message-ID: To: Rasmus Lerdorf Cc: Stas Malyshev , Andi Gutmans , internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Adding path_len to all stream functions in trunk From: pierre.php@gmail.com (Pierre Joye) hi, On Tue, Nov 16, 2010 at 7:15 AM, Rasmus Lerdorf wrote: > On 11/15/10 10:12 PM, Stas Malyshev wrote: >> Hi! >> >>> Well, it changes the signature of that function, so while we don't brea= k >>> backward binary compatibility, we break forward compatibility within th= e >>> 5.3 branch. =A0As in, if I change my extension to use this new NoNull >>> string flag, it will no longer work on<5.3.3 whereas if I do the >>> if(strlen(filename) !=3D filename_len) check, this will still work in a= ll >>> 5.3 releases. >> >> So if you have such extension, and you need to have it compatible with >> previous versions (e.g. PECL one), use the check. That doesn't prevent >> us from having the flag in the core code and thus keeping it cleaner. > > It still worries me a bit. =A0Distros love to separate core extensions > into separate packages and if you update one of those without updating > the core package, it will break. =A0Hopefully they have hard dependencies > so you can't install php-curl-5.3.4 on php-5.3.3, for example. Same here, it is somehow a API incompatibility. We did similar changes in the past and forced us to have two versions of extensions (afair it was <5.2.5 and >=3D5.2.6). That was really painful and took years to get rid of 5.2.5 support. I like the idea of having a (maybe not so perfect) solution for 5.3.x using Rasmus patch and do it right in trunk. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org