Re: cvs: php4 /ext/curl curl.c /ext/db db.c /ext/domxml php_domxml.c /ext/fdf fdf.c /ext/gd gd.c /ext/hyperwave hw.c /ext/interbase
interbase.c /ext/mhash mhash.c /ext/odbc php_od
| From: | Zeev Suraski | Date: | Mon, 13 Aug 2001 07:39:45 +0000 |
| Subject: | Re: cvs: php4 /ext/curl curl.c /ext/db db.c /ext/domxml php_domxml.c /ext/fdf fdf.c /ext/gd gd.c /ext/hyperwave hw.c /ext/interbase interbase.c /ext/mhash mhash.c /ext/odbc php_od |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-6772@lists.php.net to get a copy of this message | ||
By the way, with the comparison with 0, we can put it in any function, as its 100% negligible from a performance point of view.
Zeev
At 10:35 13-08-01, Rasmus Lerdorf wrote:
That's a *very* inefficient way of doing this. Why not just if (ZEND_NUM_ARGS()==0) {-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/ZEND_WRONG_PARAM_COUNT();} You mean != 0 there The warning message is clearer. But yes, I realize it isn't super efficient and thus didn't touch stuff that might be speed sensitive. -Rasmus