From: Sterling Hughes Date: Wed, 29 Mar 2000 12:43:13 +0000 (+0000) Subject: #yikes stripes, didn't see that one X-Git-Tag: php-4.0RC2~592 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68d4298e71bc48b2f4b876332952a6b237b8c002;p=php #yikes stripes, didn't see that one #its time to go to bed Re-fixed return value of min and max --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 297aa1f3f8..8c62cc4e35 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -685,8 +685,7 @@ PHP_FUNCTION(min) if (argc<=0) { php_error(E_WARNING, "min: must be passed at least 1 value"); - var_uninit(return_value); - RETURN_FALSE; + RETURN_NULL(); } if (argc == 1) { pval **arr; @@ -737,8 +736,7 @@ PHP_FUNCTION(max) if (argc<=0) { php_error(E_WARNING, "max: must be passed at least 1 value"); - var_uninit(return_value); - RETURN_FALSE; + RETURN_NULL(); } if (argc == 1) { pval **arr;