php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66654 shift() method is documented to return boolean. But returns item itself
Submitted: 2014-02-06 07:52 UTC Modified: 2014-09-26 06:53 UTC
From: FractalizeR at yandex dot ru Assigned: krakjoe (profile)
Status: Closed Package: pthreads (PECL)
PHP Version: 5.5.8 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 - 16 = ?
Subscribe to this entry?

 
 [2014-02-06 07:52 UTC] FractalizeR at yandex dot ru
Description:
------------
---
From manual page: http://www.php.net/worker.shift
---


Function is documented as final public boolean Worker::shift ( void )

But doc says, that it returns: The first item from the objects properties table. Is this first item always of boolean type?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-26 06:52 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=334983
Log: fix #66654 wrong return type
 [2014-09-26 06:53 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2014-09-26 06:53 UTC] krakjoe@php.net
Just fixed this in documentation, takes a while to be deployed.

Thanks for report ;)
 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=ca43424113fdb2c63c7ab9eb89a7783921f07efe
Log: fix #66654 wrong return type
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 23:01:24 2020 UTC