php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65185 pcntl_errno() is wrongly defined as an alias of pcntl_strerror()
Submitted: 2013-07-02 17:26 UTC Modified: 2017-01-28 16:48 UTC
From: benjamin dot morel at gmail dot com Assigned: cmb (profile)
Status: Closed Package: PCNTL related
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2013-07-02 17:26 UTC] benjamin dot morel at gmail dot com
Description:
------------
The documentation:

http://php.net/manual/en/function.pcntl-errno.php

Says that pcntl_errno() is an alias for pcntl_strerror(), whereas it's actually an 
alias for pcntl_get_last_error(), as seen in the source code:

https://github.com/php/php-src/blob/master/ext/pcntl/pcntl.c#L160



Expected result:
----------------
Alias of pcntl_get_last_error()

Actual result:
--------------
Alias of pcntl_strerror()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-04 17:18 UTC] krakjoe@php.net
-Type: Documentation Problem +Type: Bug
 [2013-10-04 17:18 UTC] krakjoe@php.net
Somebody please look at this and clarify that the alias is correct and pass it back to doc team with clarification attached.
 [2017-01-28 16:42 UTC] cmb@php.net
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: PCNTL related -Assigned To: +Assigned To: cmb
 [2017-01-28 16:42 UTC] cmb@php.net
> Somebody please look at this and clarify that the alias is
> correct […]

pcntl_errno() is an alias to pcntl_get_last_error() since it has
been introduced by the fix for bug #52173. Also it wouldn't make
sense for pcntl_errno() to be an alias of pcntl_strerror() as the
latter returns a string and an errno is usually an int.
 [2017-01-28 16:47 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=341794
Log: Fix #65185: pcntl_errno() is wrongly defined as an alias of pcntl_strerror()
 [2017-01-28 16:48 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2017-01-28 16:48 UTC] cmb@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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 15:01:27 2019 UTC