Re: ARG_COUNT(ht)
| From: | Hartmut Holzgraefe | Date: | Mon, 05 Jun 2000 12:50:55 +0000 |
| Subject: | Re: ARG_COUNT(ht) | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20239@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
>
> On Fri, 02 Jun 2000, Sterling Hughes wrote:
> > 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 -l
120
--
Hartmut Holzgraefe hartmut@six.de http://www.six.de