Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45835 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33798 invoked from network); 17 Oct 2009 03:18:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2009 03:18:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 69.5.8.4 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 69.5.8.4 hc02.futurequest.net Linux 2.4/2.6 Received: from [69.5.8.4] ([69.5.8.4:58385] helo=hc02.futurequest.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/12-22362-86739DA4 for ; Fri, 16 Oct 2009 23:18:01 -0400 Received: (qmail 2453 invoked from network); 17 Oct 2009 03:17:57 -0000 X-Originating-IP: [98.212.48.71] To: internals@lists.php.net Date: Fri, 16 Oct 2009 22:17:55 -0500 User-Agent: KMail/1.11.2 (Linux/2.6.27-14-generic; KDE/4.2.2; i686; ; ) References: <20091016143251.e95b77e5@mailro.4psa.com> <1255705792.4199.9.camel@samuel-laptop> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200910162217.55722.larry@garfieldtech.com> Subject: Re: [PHP-DEV] Autofunc patch (automatically loading functions like autoload) From: larry@garfieldtech.com (Larry Garfield) On Friday 16 October 2009 10:29:15 am Ferenc Kovacs wrote: > On Fri, Oct 16, 2009 at 5:09 PM, Samuel ROZE wrot= e: > > Hi, > > > > This is a good idea, it appears that it works fine ! I'm not really fond > > of auto-loading (class or here functions) but it can be a good > > thing ! :-) > > > > Le vendredi 16 octobre 2009 =C3=A0 17:32 +0300, Rack-Soft security a = =C3=A9crit : > > [...] > > > >> Management of large no OOP projects (or mixed OOP/procedural) is much > >> easier with this. > > > > Are there still new projects no OOP which are using PHP 5.x ? > > http://drupal.org/node/547518 > "Why not use classes" > I didnt check the latest code, but I think drupal still uses global > functions. That document is rather out of date and it's on my list to update soon, but= =20 yes Drupal is still largely procedural. Even as we are adopting more OO co= de=20 in version 7 (code freeze was yesterday!) and will undoubtedly use even mor= e=20 OO code in future versions, there are many use cases where functions or=20 dynamically-called functions are simply a better solution in PHP than class= es. =46or that reason I am very very much in favor of this functionality, altho= ugh I=20 have not yet looked at the specific implementation here. I'll try to do so= =20 soon, although I not really qualified to comment on the C code itself, just= the=20 API. =2D-=20 Larry Garfield larry@garfieldtech.com