Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56244 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50435 invoked from network); 10 Nov 2011 19:10:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2011 19:10:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:63301] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/DE-01205-4912CBE4 for ; Thu, 10 Nov 2011 14:10:13 -0500 Received: by faan2 with SMTP id n2so3487931faa.29 for ; Thu, 10 Nov 2011 11:10:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+AY0WUYyZ6O5rln7Qllz/vRUDYslzsbqK72u85BYP0I=; b=SBjI/9NeDsfVviUTc0voDdgYU9i4aDsg1ymAKQ0mXiOGDU1/hGJI7Wa/pcPfNg9pND 2jRtXjsGlNWHO2ZxDknIY16in9xRXz4E5rd5Ak0m5Zof9crBlD6klvbwISR2SCSuQtIM z1tmVzZhZAeNwXlh1Ru1g3UzhzcF6mYVWpt+M= MIME-Version: 1.0 Received: by 10.223.76.66 with SMTP id b2mr14091042fak.15.1320952209976; Thu, 10 Nov 2011 11:10:09 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.223.95.205 with HTTP; Thu, 10 Nov 2011 11:10:09 -0800 (PST) In-Reply-To: References: <-4079824451837834664@unknownmsgid> <4EBB7A7B.9030303@sugarcrm.com> Date: Thu, 10 Nov 2011 20:10:09 +0100 X-Google-Sender-Auth: 7c6J-jZ6wHi4kqii3TNfZS5LVHs Message-ID: To: Pierre Joye Cc: Stas Malyshev , "guilhermeblanco@gmail.com" , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] SplClassLoader RFC Voting phase From: patrickallaert@php.net (Patrick ALLAERT) 2011/11/10 Pierre Joye : > On Thu, Nov 10, 2011 at 11:13 AM, Patrick ALLAERT >> Some are blocking because they kinda feel forced if this is introduced. >> Ignore those, PHP wouldn't have bundled ext/mysql for the same reasons >> about 15 years ago. >> >> I guess that some voted "No" because of lack of consensus. > > What amazes me is this exact argument. We never had, in the whole PHP > history, so many leading projects agreeing on something, together and > propose it to the core. I, for one, have been waiting for that to > happen for years (PEAR, etc.), and now that it is happening, what do > we do? 'No thanks', for whatever reasons. That's so wrong. The many "leading projects agreeing on something" is the PSR-0 standard[1] and NOT about how it might/should be implemented in PHP [2], nor about a possible native implementation[3]. Repeating some other's concerns, including mine: 1. Registering/Unregistering: What about removing SplAutoloader/SplClassLoader [un]register() in favor of changing spl_autoload_register() to accept an SplAutoloader object or implementing __invoke()? 2. SplClassLoader: Name does not reflect the PSR-0 standard at all, nor are autoloader just for "classes" (interfaces, traits,...) => SplPsr0Autoloader? In any case, that class is misnamed. 3. Would the implementation be friendly for (namespaced?) function autoloading? (Doesn't exist yet but has been raised multiple times. Might be wise to consider it while developing an "SplAutoloader" interface) 4. Should INI directives be considered for configuration (default_autoloader_class, default_autoloader_path, psr0_autoload_file_extension, psr0_include_path, ...) 5. Included/Enabled by default? 6. The different methods of SplClassLoader might be defined in separate traits for higher reusability. Can those technical concerns, as well as all the ones I missed, not involving the standard, be addressed prior to voting? Some "No" votes might then probably be turned into "Yes". Cheers, Patrick [1] https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md [2] https://gist.github.com/221634 [3] https://gist.github.com/1310352