Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25600 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61043 invoked by uid 1010); 11 Sep 2006 08:06:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61028 invoked from network); 11 Sep 2006 08:06:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2006 08:06:17 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 64.233.166.182 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.166.182 py-out-1112.google.com Linux 2.4/2.6 Received: from [64.233.166.182] ([64.233.166.182:52908] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/24-30636-6F815054 for ; Mon, 11 Sep 2006 04:06:16 -0400 Received: by py-out-1112.google.com with SMTP id c39so1840044pyd for ; Mon, 11 Sep 2006 01:06:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ljVUwF5aCcLfACC+6z9IRUTAHfm+LTon2ui773PNnOq3jsRFhuZ/nO9kwAbFeai++zl5kmO0HLOH3q5VrOtaY7z5LtwhNlLUQojvhQdncMu906y2i+qVOXX/FvnjruPKUwKRkeNqOqy1mqoA1XP3gAYDQO7TExxPgUiV9HOYvoI= Received: by 10.35.61.17 with SMTP id o17mr8361861pyk; Mon, 11 Sep 2006 01:06:12 -0700 (PDT) Received: by 10.35.93.8 with HTTP; Mon, 11 Sep 2006 01:06:11 -0700 (PDT) Message-ID: <10845a340609110106y5a21de3coc98659cde5ef0465@mail.gmail.com> Date: Mon, 11 Sep 2006 09:06:11 +0100 Reply-To: RQuadling@GoogleMail.com To: "dAniel hAhler" Cc: internals@lists.php.net In-Reply-To: <29.48.46429.82A54054@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <015801c6d4d5$6440d1d0$9a02a8c0@pc> <7f3ed2c30609100744x7a5d4fdfs9601ae4671b351d3@mail.gmail.com> <003401c6d4ee$1b251d80$9a02a8c0@pc> <1803358544.20060910173549@marcus-boerger.de> <29.48.46429.82A54054@pb1.pair.com> Subject: Re: [PHP-DEV] Re: __autoloading and functions From: rquadling@googlemail.com ("Richard Quadling") On 10/09/06, dAniel hAhler wrote: > Marcus Boerger wrote: > > > it hasbeendiscussed and the conclusion is that it isfar too much of a > > slowdown for every function call and thus we are not going to implement > > it. > > Maybe a dump question, but wouldn't it get considered only, AFTER PHP has > found that the function does not exist? > > So, it shouldn't be a slowdown at all. > > On the other hand I don't know the internals of PHP very much. > > > > The speed reasoning put aside we also found that procedural techniques > > should not mix too much with the object oriented features. > > This may be a reason, but I for one would not think that this is "dirty". > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > One way in useerland to solve this is to use an error handler to identify non existant function calls and then use an appropriate mechanism to find them. The only slowdown would be when an error occurred (but acceptable). If the functions where kept in files of their own name, then this would be the end of function libraries and a LOT of additional files. This could promote refactoring to take groups of related functions and convert them to a class to allow for autoloading to work. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"