Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68813 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50991 invoked from network); 1 Sep 2013 09:38:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2013 09:38:54 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 209.85.212.48 cause and error) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.212.48 mail-vb0-f48.google.com Received: from [209.85.212.48] ([209.85.212.48:54653] helo=mail-vb0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/30-55332-D2B03225 for ; Sun, 01 Sep 2013 05:38:53 -0400 Received: by mail-vb0-f48.google.com with SMTP id w16so2359388vbf.35 for ; Sun, 01 Sep 2013 02:38:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=PAdBo+0EoYkPyKtz3TpdKTkl0Rhq59eKs4Ot95fQf44=; b=UumMtx2jC6SdE9kuzuJFinsMfMYJ/hVa6cbo4GAQ4QiDmnb8LoA+t6Z80nM51FGSnX TN3QbU3HTUGeGTcQ6gjeuMEVGpUL4wtLijd1TCOsStECPGA6htafhfMJg4ay/ebvasYa i8bebmuzTBQ3WjjA95YljjIYky2c1ybS+EbPw6r0H2qA/Gk6ZABy5/5qHCxp8w6KXx8t R14ezPjLWSvqvKjkzN1iGhDeAmvsEnLkgeaTBlAPtzmx6iKFqu7RL/YW4LC14wZRIcTG apvBAq0wyVodcWOzb15G3KTYisCjk3sdPzsMS3JNZIW1P3ak2VogLqfB499pG5crzxQB D9Lw== X-Gm-Message-State: ALoCoQl0YKMTey0dXR1uWLIqzsx9YjcTU4k1qzBNuEVxoeOQAedpGdBhohzMEhFHLDAqQ9IOiM8w2o3t4KtnH4mUN742mOb2qeILQZtAbzH9bVFVPp21LfUAd70tJg5FW2kCdZP6Ronn X-Received: by 10.220.199.5 with SMTP id eq5mr17163978vcb.16.1378028330530; Sun, 01 Sep 2013 02:38:50 -0700 (PDT) References: <5220262A.6040702@sugarcrm.com> <5220437A.7050008@sugarcrm.com> <5220D212.3010101@sugarcrm.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHD9223WG5hSjt2WBFKMiegrZ5QcwGRaxwOAohe5rUBiMupGAG20S9KAkgGFV8CMa+UAZlnZRlg Date: Sun, 1 Sep 2013 12:38:49 +0300 Message-ID: To: Sebastian Krebs , Stas Malyshev Cc: Sara Golemon , Anthony Ferrara , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] [DRAFT] [RFC] Function autoloading From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Sebastian Krebs [mailto:krebs.seb@gmail.com] > Sent: Friday, August 30, 2013 9:02 PM > To: Stas Malyshev > Cc: Sara Golemon; Anthony Ferrara; internals@lists.php.net > Subject: Re: [PHP-DEV] [DRAFT] [RFC] Function autoloading > > 2013/8/30 Stas Malyshev > > > Hi! > > > > > Well, static methods aren't the same as functions. > > > > The big difference being? > > > > A function is stateless [1], a method isn't. A function operates only on the > passed parameters [1], the method operates on the parameters and the > context it inherits from the instance (non-static), or class (static and non- > static). Static methods are equally stateless as global functions. A class state (static members) is no different from global variables (except for a tiny bit of lipstick in the form of encapsulation). There's no argument methods are different from global functions, not so with static methods which are essentially the same as global functions. Zeev