Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10362 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68693 invoked by uid 1010); 10 Jun 2004 02:07:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68626 invoked from network); 10 Jun 2004 02:07:15 -0000 Received: from unknown (HELO coogle.localdomain) (68.61.83.224) by pb1.pair.com with SMTP; 10 Jun 2004 02:07:15 -0000 Received: from coogle.localdomain (coogle.localdomain [127.0.0.1]) by coogle.localdomain (8.12.8/8.12.8) with ESMTP id i5A26V6B001838; Wed, 9 Jun 2004 22:06:35 -0400 Received: (from john@localhost) by coogle.localdomain (8.12.8/8.12.8/Submit) id i5A25b74001833; Wed, 9 Jun 2004 22:05:37 -0400 X-Authentication-Warning: coogle.localdomain: john set sender to john@coggeshall.org using -f Reply-To: john@coggeshall.org To: l0t3k Cc: PHP Internals In-Reply-To: <20040610005309.43647.qmail@pb1.pair.com> References: <20040610004956.34277.qmail@pb1.pair.com> <20040610005309.43647.qmail@pb1.pair.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-ID: <1086833137.1809.0.camel@coogle.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 09 Jun 2004 22:05:37 -0400 Subject: Re: [PHP-DEV] That should be " ZE2 and NON static methods" From: john@coggeshall.org (John Coggeshall) Um, that's the type of thing that a quick test could tell you, isn't it? John On Wed, 2004-06-09 at 20:53, l0t3k wrote: > lets try again > in an OOP extension using methods NOT tagged as ZEND_ACC_STATIC, > does ZE2 > prevent them from being called statically or do i always need to do : > > if (!getThis()) { > ERROR("Cannot call this method statically"); > RETURN_FALSE; > } > > l0t3k -- -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=- John Coggeshall http://www.coggeshall.org/ The PHP Developer's Handbook http://www.php-handbook.com/ -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-