Re: ARG_COUNT(ht)
| From: | Andrei Zmievski | Date: | Sat, 03 Jun 2000 00:39:57 +0000 |
| Subject: | Re: ARG_COUNT(ht) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20108@lists.php.net to get a copy of this message | ||
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.
-Andrei