Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14277 invoked from network); 30 Aug 2013 10:50:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2013 10:50:00 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass 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.215.54 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-la0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:52709] helo=mail-la0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/29-64695-6D870225 for ; Fri, 30 Aug 2013 06:49:59 -0400 Received: by mail-la0-f54.google.com with SMTP id ea20so1397638lab.13 for ; Fri, 30 Aug 2013 03:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pTrW7Q+z0YGIkzBezuOqj98tfm2sOLDEzuWeLVLP5pQ=; b=AuIao+U75ajfgf8aM2OXAp4VGgC/SnbZf4mqlE5zeBWwJqbA+WW/aFbDb1q2dZsniy 1KqeqM/XoOrhkb53GEZ77koHE/mACJBThGywNzMNnnHZT2C+Uq1VYNE5XIPAlRak0s0k PmMTkVkHmmjGK9p4acCaYkaz3wJ7V51vLAyv9dEtbgfdRd7Bqd96VpqDKyTv0jN0ohdl gKV2rMLWR5JPq44nLWkyoWaVgwhaJkTi1XG/oTVkPzBnggn31TQUJJL6RwE7WDHuJGkj 6dtvBwDszqKrzMCPT2jh4j4SBn8ofr1pIKBt5UM6hvxhmMS7/pypVHzJl/tiQ5ZifmMl ZRBw== MIME-Version: 1.0 X-Received: by 10.152.228.130 with SMTP id si2mr1431598lac.32.1377859795056; Fri, 30 Aug 2013 03:49:55 -0700 (PDT) Received: by 10.112.148.138 with HTTP; Fri, 30 Aug 2013 03:49:55 -0700 (PDT) In-Reply-To: <52207782.5050204@gmail.com> References: <521FE78E.3060900@gmail.com> <52207782.5050204@gmail.com> Date: Fri, 30 Aug 2013 12:49:55 +0200 Message-ID: To: Terry Ellison Cc: Julien Pauli , Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Always set return_value_ptr? From: pierre.php@gmail.com (Pierre Joye) hi, On Fri, Aug 30, 2013 at 12:44 PM, Terry Ellison wrote: > Yes I understand that, but the code processes the elements in this dirname, > basename, filename, extension order so the two statements are equivalent in > implementation. > > I am an experienced developer but a newbie-ish to the PHP developer > community, and I come back to my Q. What do we typically do if we come > across such weird functional behaviour outside the documented use of a > standard function? > > * Shrug our shoulders and say "That's PHP for you. BC rules" As of now, this is the rule. BC has a much higher priority than some weird edge cases bug fixes. > * Fix the documentation to say what the code actually does That should be the case as much as possible :) > * Fix the code at the next major release, say 5.6 to have sensible error > behaviour. This is always a gray zone, especially if changes behaviors and then introduces BC issues. BC breaks are the biggest problems in php. Obviously I am not referring to new notices or warnings but actual behaviors changes. Cheers, -- Pierre @pierrejoye | http://www.libgd.org