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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Thu Nov 14 03:01:30 2019 UTC