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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: eran dot kornblau at kaltura dot com
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Wed Oct 23 16:01:30 2019 UTC