Re: [PHP4BETA] Re: min/max oddities
| From: | Andrei Zmievski | Date: | Mon, 08 Nov 1999 14:29:01 +0000 |
| Subject: | Re: [PHP4BETA] Re: min/max oddities | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5959@lists.php.net to get a copy of this message | ||
On Sun, 07 Nov 1999, Thies C . Arntzen wrote:
> hi andi,
> i've enclosed a patch that makes min()/max() use compare_function() from
> libzend - i'm too tired to commit something like this without at least two
> more eyes on it.
>
> maybe you could check & apply it?
+ if (compare_function(&result, first, second) == FAILURE) {
+ return 0;
+ }
+
+ convert_to_long(&result);
I don't think convert_to_long() is necessary, since compare_function()
sets the type of the result.
-Andrei
* Ethernet n.: something used to catch the etherbunny. *