Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22104 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73743 invoked by uid 1010); 3 Mar 2006 22:36:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73669 invoked from network); 3 Mar 2006 22:36:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2006 22:36:23 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:3054] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 54/13-35203-5D4C8044 for ; Fri, 03 Mar 2006 17:36:07 -0500 Received: (qmail 1160 invoked from network); 3 Mar 2006 22:36:00 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 3 Mar 2006 22:36:00 -0000 Message-ID: <7.0.1.0.2.20060303143552.02c06780@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Fri, 03 Mar 2006 14:35:56 -0800 To: Johannes Schlueter ,internals@lists.php.net In-Reply-To: <200603032330.00973.johannes@php.net> References: <200603032330.00973.johannes@php.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [patch] Separating ZEND_METHOD and ZEND_FUNCTION From: andi@zend.com (Andi Gutmans) Makes sense to me. At 02:30 PM 3/3/2006, Johannes Schlueter wrote: >Hi, > >following a recent discussion on IRC I'd like to propose a little patch >separating ZEND_FUNCTION and ZEND_METHOD. > >Currently functions declared as ZEND_FUNCTION are named zif_exported_name. >Class methods are exported as zif_class_method. If you try to create a PHP >function called foo_bar but already have some class foo with a method bar >this leads to a "redefinition of `zif_foo_bar`". > >The attached patch solves this kind of issues by prefixing methods with zim_ >(with m like in method) instead of zif_. > >Additionally it might help a bit while debugging since you can see wether >you're in some class/object or a function context. > >As always the patch is also available at my repository on >http://svn.schlueters.de/phpatches/HEAD/zend_separate_zend_method.diff > >johannes > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php