[PHP-DEV] Bug #797: Mistake in text of error message. From: libs <email protected>
Date: 09/29/98

From: libs <email protected>
Operating system: NA
PHP version: 3.0.4
PHP Bug Type: Misbehaving function
Bug description: Mistake in text of error message.

uksort() works fine, thanks.

There seems to be a cut/paste mistake in the error-handling source
code which incorrectly refers to uasort instead of uksort, though:

In functions/basic_functions.c, near line 921, the bit about :
  if (!(array->type & IS_HASH)) {
    php3_error(E_WARNING, "Wrong datatype in uasort() call");
                                                                     ^^^^^^
    user_compare_func_name = old_compare_func;
    return;
  }
Should read instead:
  if (!(array->type & IS_HASH)) {
    php3_error(E_WARNING, "Wrong datatype in uksort() call");
    user_compare_func_name = old_compare_func;
    return;
  }

No big deal.

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>