php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50964 Return value incorrectly documented: Is "void", should be "int".
Submitted: 2010-02-08 10:59 UTC Modified: 2010-02-08 19:19 UTC
From: sven at rtbg dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2010-02-08 10:59 UTC] sven at rtbg dot de
Description:
------------
Return value incorrectly documented: Is "void", should be "int".

Reproduce code:
---------------
---
From manual page: splpriorityqueue.compare
---
This is wrong:
"Description
void SplPriorityQueue::compare ( mixed $priority1 , mixed $priority2 )"

Because this is right:
"Return Values

Result of the comparison, positive integer if priority1 is greater than priority2 , 0 if they are equal, negative integer otherwise."

Expected result:
----------------
Description
int SplPriorityQueue::compare ( mixed $priority1 , mixed $priority2 )

Actual result:
--------------
Description
void SplPriorityQueue::compare ( mixed $priority1 , mixed $priority2 )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-08 19:18 UTC] svn@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=294774
Log: Fixed bug #50964 (Return value incorrectly documented: Is void, should be int.)
 [2010-02-08 19:19 UTC] degeberg@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of degeberg
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=cf1cc9fd0be3ef8012f1cb805af5749b2153168c
Log: Fixed bug #50964 (Return value incorrectly documented: Is void, should be int.)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 11:00:01 2026 UTC