Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93358 invoked from network); 12 Aug 2011 10:12:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2011 10:12:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=sebastian.krebs.berlin@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=sebastian.krebs.berlin@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.161.42 as permitted sender) X-PHP-List-Original-Sender: sebastian.krebs.berlin@googlemail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:52188] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/F7-40016-B7CF44E4 for ; Fri, 12 Aug 2011 06:12:12 -0400 Received: by fxe23 with SMTP id 23so2425738fxe.29 for ; Fri, 12 Aug 2011 03:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=KpGAMc36qhUtnxVoIdDNjzx/SxtdtVUjyxpedh3RzLY=; b=MbxZW9bWcaAQfVOQUyVDdKM2k+s2DQ9BWQxl06os8zGllaHY78qA/s60aibgS2mQAS EdfUaCzORV4ZUcAgxY9oOu3hadwh9YndTYjboHF54wXZxX1PRXMcQ9bWTowOaacjj9Mc wmSMDsmWcvbJnICW5Ljya6IihKb1IMMJU4gnA= MIME-Version: 1.0 Received: by 10.223.93.201 with SMTP id w9mr1058237fam.52.1313143927925; Fri, 12 Aug 2011 03:12:07 -0700 (PDT) Sender: sebastian.krebs.berlin@googlemail.com Received: by 10.223.87.9 with HTTP; Fri, 12 Aug 2011 03:12:07 -0700 (PDT) In-Reply-To: References: <4E3D3275.9020903@rotorised.com> Date: Fri, 12 Aug 2011 12:12:07 +0200 X-Google-Sender-Auth: vo3y6echp1frTqw77VkLatfr6JE Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=20cf30433f785cee1e04aa4c2544 Subject: Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload* From: krebs.seb@googlemail.com (Sebastian Krebs) --20cf30433f785cee1e04aa4c2544 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, 2011/8/12 Ferenc Kovacs > On Sat, Aug 6, 2011 at 2:24 PM, Ryan McCue wrote: > > Ferenc Kovacs wrote: > >> I would like to introduce this RFC which would provide function > >> autoloading through the spl_autoload facility without userland BC > >> breakage. > > > > Shouldn't the default type be T_CLASS|T_INTERFACE? > > > > sorry for the late reply. > judging from your reply and the conversion on irc with Etienne, I > think that the usage of the token constants are ambiguous(we have > different token constants for classes and interfaces as you mentioned > for example). > originally I chose this because this would be fully backward > compatible, but now I think that we should add new constants. > what do you think? > From the users point of view I don't care. It's just another constant. Also constants like SPL_AUTOLOAD_CLASS SPL_AUTOLOAD_FUNCTION SPL_AUTOLOAD_CONSTANT seems to be more obvious, because it reflects, that it belongs to spl-autoload. > > -- > Ferenc Kov=E1cs > @Tyr43l - http://tyrael.hu > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --20cf30433f785cee1e04aa4c2544--