Re: cvs: php4 /ext/mysql php_mysql.c
| From: | Andi Gutmans | Date: | Thu, 26 Apr 2001 19:37:04 +0000 |
| Subject: | Re: cvs: php4 /ext/mysql php_mysql.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-5299@lists.php.net to get a copy of this message | ||
You could pass two parameters. The minimum amount and the maximum amount of expected arguments.
Andi
At 12:34 PM 4/26/2001 -0500, Matt McClanahan wrote:
On Thu, Apr 26, 2001 at 07:00:10AM -0400, Sean R. Bright wrote: I should think that should be: if (ZEND_NUM_ARGS() != expected_args) { rather than less than. Sean Then mysql_fetch_object and mysql_fetch_array would require two args, when they're supposed to accept either one or two. I'll be the first to admit it's a lousy soluiton, but.. there it is.+ if (ZEND_NUM_ARGS() > expected_args) {Matt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net+ WRONG_PARAM_COUNT;+ } +