Re: php4 /ext/standard array.c

From: Date: Fri, 05 Oct 2001 20:25:57 +0000
Subject: Re: php4 /ext/standard array.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7667@lists.php.net to get a copy of this message
> while(zend_hash_get_current_data_ex(target_hash, (void **)&entry, &pos) == SUCCESS) { > compare_func(&res, *value, *entry TSRMLS_CC); > - if (Z_LVAL(res) == 1) { > + if (Z_LVAL(res)) { > if (behavior==0) Can anyone have a look at this? I'm not 100% sure, but AFAIK a compare function returns 0 iff equal, nonzero iff that's not the case. (split up in negative iff first argument is the smallest, positive iff second argument is smallest). --Jeroen

« previous php.cvs (#7667) next »