A quite anusual problem - and I can't figure it out..

My script, using the usort-function works properly
on my local php-environment (PHP 4.0.6) but not
on my server, running php 4.1.2!
I've read in a documentation, that php since 4.1.0
doesn't accept zero as return-value of the compare-function.
But that value never occurs in my script!

There are no error messages,
the server just stops interpreting my script
after 7 calls of the compare function -
no farther commands are recognized!
The max. execution-time isn't exceeded;
i've tested that.
If I replace usort, and use a bubblesort function instead,
everythings works fine.. I use:

> for ($a = 0; $a < count($zeile); $a++)
>

>  for ($b = $a; $b < count($zeile); $b++)
>

>   $c = sortieren($zeile[$a], $zeile[$b]);
>   if ($c < 0){ $temp = $zeile[$a]; $zeile[$a] = $zeile[$b]; $zeile[$b] =
$temp; }
> } }

It's a strange problem, isn't it?
Thanks in advance.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to