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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun May 12 15:01:30 2024 UTC