#50964 [Opn->Csd]: Return value incorrectly documented: Is "void", should be "int".

From: Date: Mon, 08 Feb 2010 19:19:09 +0000
Subject: #50964 [Opn->Csd]: Return value incorrectly documented: Is "void", should be "int".
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3840@lists.php.net to get a copy of this message
ID: 50964 Updated by: degeberg@php.net Reported By: sven at rtbg dot de -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-02-08 19:18:56] 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 10:59:08] 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 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50964&edit=1

« previous php.doc.bugs (#3840) next »