php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #797 Mistake in text of error message.
Submitted: 1998-09-29 03:30 UTC Modified: 1998-10-03 20:32 UTC
From: libs at cybercable dot tm dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.4 OS: NA
Private report: No CVE-ID: None
 [1998-09-29 03:30 UTC] libs at cybercable dot tm dot fr
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-03 20:32 UTC] zeev
Fixed, thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 25 00:01:33 2024 UTC