php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72201 The doc of the callback param of array_udiff_assoc is inaccurate
Submitted: 2016-05-11 17:54 UTC Modified: 2018-10-02 21:35 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: eran dot kornblau at kaltura dot com Assigned:
Status: Verified Package: Arrays related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-05-11 17:54 UTC] eran dot kornblau at kaltura dot com
Description:
------------
Looking at the code, this function only cares whether the callback returns zero or nonzero, it does not care whether the value is negative or positive like the docs say. This makes sense because this function does not involve any ordering, only comparison of elements


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 17:43 UTC] cmb@php.net
-Package: Documentation problem +Package: Arrays related
 [2018-10-02 21:35 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2018-10-02 21:35 UTC] cmb@php.net
Same for array_udiff(), array_udiff_uassoc(), array_uintersect(),
array_uintersect_assoc() and array_uintersect_uassoc().
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Fri Nov 16 12:01:26 2018 UTC