Re: ARG_COUNT(ht)
| From: | Andi Gutmans | Date: | Mon, 05 Jun 2000 19:39:07 +0000 |
| Subject: | Re: ARG_COUNT(ht) | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20283@lists.php.net to get a copy of this message | ||
Mega patch coming up :)
We really don't want coders to have to know Zend internals. The "ht" is a leftover from PHP 3 and we kept the ARG_COUNT() for backwards comatibility. Time for it to pretty much die.
Andi
At 02:50 PM 6/5/00 +0200, Hartmut Holzgraefe wrote:
Andrei Zmievski wrote: On Fri, 02 Jun 2000, Sterling Hughes wrote:--- Andi Gutmans <andi@zend.com> http://www.zend.com/Why is the ARG_COUNT(ht) macro used in current code? The definition is: #define ARG_COUNT(dummy) (ht) can just plain ht be used instead, or for code that will be in PHP, ARG_COUNT(ht) should be used?ARG_COUNT(ht) is a historical fossil from PHP 3. It was kept around for compatibility purposes. In PHP 4 you are supposed to use ZEND_NUM_ARGS() instead. seems to me that this is one of the 'unknown facts' find . -name "*.c" | xargs fgrep 'ARG_COUNT(' | wc -l 1102 find . -name "*.c" | xargs fgrep 'ZEND_NUM_ARGS(' | wc -l120--Hartmut Holzgraefe hartmut@six.de http://www.six.de-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net