Date: 06/26/01
- Next message: Zeev Suraski: "[PHP-DEV] Zend Engine 2.0: Feature Overview and Design"
- Previous message: joey <email protected>: "[PHP-DEV] Bug #10718 Updated: charset parameter on sybase_connect dos is disallowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Well, if the array was passed in from somewhere else and is usually more
> than one element, why would you clutter up your code checking every
> time for the one-element (or no element) case rather than assuming
> sort correctly handles all cases.
(just for the records) :)
*sorting* works in any case!!! according to the manual sorting actually
is ok. the documentation says *nothing* about the keys (de facto, if you
would weigh this behaviour against the documentation you would not be
able to find a bug anyhow) it just is a kind of inconsistency. you only
can treat this a bug looking at the C code, where a parameter for
"renumbering" is given (renumbering is 0 for key-preserving sorting)
the current behaviour simply isn't defined and thus follows: you can
infer anything from a wrong premise! inferring this being correct
behaviour is equally legitimate inferring the contrary!
actually I think treating this as a bug makes sense, but this should not
go in before 4.1 to avoid any confusion.
andré
-- · André Langhorst t: +49 331 5811560 · · andre <email protected> m: +49 173 9558736 · * PHP Quality Assurance http://qa.php.net *-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zeev Suraski: "[PHP-DEV] Zend Engine 2.0: Feature Overview and Design"
- Previous message: joey <email protected>: "[PHP-DEV] Bug #10718 Updated: charset parameter on sybase_connect dos is disallowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

