ID:               17307
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Arrays related
 Operating System: Linux
 PHP Version:      4.2.1
 New Comment:

Huh ... Related to Bug #17257

 ;)


Previous Comments:
------------------------------------------------------------------------

[2002-05-22 08:44:49] [EMAIL PROTECTED]

Related to Bug #17307

------------------------------------------------------------------------

[2002-05-18 08:49:39] [EMAIL PROTECTED]

Please prive a short self containing script (which runs right away
after copy&paste).

Derick

------------------------------------------------------------------------

[2002-05-18 08:36:08] [EMAIL PROTECTED]

I used to make sorts with usort and calling the function below. This
was working on the last versions but not anymore on the 4.2.1 :/ which
outputs strange result.

function sort_function($a, $b)
{
  if ((($a["livre"]/$a["quantite"]) == ($b["livre"]/$b["quantite"])) ||
$a["nom"] != $b["nom"]) return 0;
  return (($a["livre"]/$a["quantite"]) < ($b["livre"]/$b["quantite"]))
? -1 : 1;
}

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17307&edit=1

Reply via email to