Re: [patch] Separating ZEND_METHOD and ZEND_FUNCTION

From: Date: Fri, 03 Mar 2006 22:35:56 +0000
Subject: Re: [patch] Separating ZEND_METHOD and ZEND_FUNCTION
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-22104@lists.php.net to get a copy of this message
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


« previous php.internals (#22104) next »