Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96689 invoked from network); 12 Aug 2011 10:31:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2011 10:31:22 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:34944] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/98-40016-7F0054E4 for ; Fri, 12 Aug 2011 06:31:20 -0400 Received: by gxk27 with SMTP id 27so2130616gxk.29 for ; Fri, 12 Aug 2011 03:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=UPQ8llRPd2yyM/XmTiPluvjOBwaSNtEcdSBGqHi/2Y0=; b=F4exDoKjvOb7lROjkjEWBwTrWoP+eVNT+g2qGiLFxzhWMEWxhLE3nleD/kH7J94jzs aj2fU7olbuOdoJY8kc6+yFWZT12ztSAb4OB8DVMFvi5N55sbJvtymgBsicB3U9j2Y2tD ngz3NDp3tA+ZZjDozyTMPTLIaBjog+zVeqqRQ= MIME-Version: 1.0 Received: by 10.236.125.225 with SMTP id z61mr2296107yhh.194.1313145077447; Fri, 12 Aug 2011 03:31:17 -0700 (PDT) Received: by 10.146.168.9 with HTTP; Fri, 12 Aug 2011 03:31:17 -0700 (PDT) In-Reply-To: References: <4E3D3275.9020903@rotorised.com> Date: Fri, 12 Aug 2011 12:31:17 +0200 Message-ID: To: Sebastian Krebs Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload* From: tyra3l@gmail.com (Ferenc Kovacs) On Fri, Aug 12, 2011 at 12:12 PM, Sebastian Krebs wrote: > 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. Al= so > 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. > imo from the users point of view your suggested constant names are much better, plus the T_* constants are provided by the tokenizer extension, which AFAK could be disabled compilation time, and by itself would be a bad idea to couple the two extension. so +1 for your suggestion, I will update the RFC, and check out how hard would be to create a patch. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu