Re: [PHP4BETA] cvs: /php4/ext/standard array.c
| From: | thies at digicol dot de | Date: | Wed, 29 Mar 2000 11:38:38 +0000 |
| Subject: | Re: [PHP4BETA] cvs: /php4/ext/standard array.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12791@lists.php.net to get a copy of this message | ||
sorry to bother you again - you've changed the behaviour of
min() and max().
var_unit(return_value);
return;
*differs from*
RETURN_FALSE;
- actually -
RETURN_NULL();
would be the equvalent!
as we are so near to the release of 4.0 i'd like to ask you
only to change thing that you are 100% sure that they don't
have any unwanted side-effects!
thanx -
> + Return the lowest value in an array or a series of arguments */
> PHP_FUNCTION(min)
> {
> int argc=ARG_COUNT(ht);
> @@ -648,7 +686,7 @@
> if (argc<=0) {
> php_error(E_WARNING, "min: must be passed at least 1 value");
> var_uninit(return_value);
> - return;
> + RETURN_FALSE;
> }
> if (argc == 1) {
> pval **arr;
> @@ -688,8 +726,10 @@
> efree(args);
> }
> }