Doc #65185 [Ver->Csd]: pcntl_errno() is wrongly defined as an alias of pcntl_strerror()
| From: | cmb@php.net | Date: | Sat, 28 Jan 2017 16:48:51 +0000 |
| Subject: | Doc #65185 [Ver->Csd]: pcntl_errno() is wrongly defined as an alias of pcntl_strerror() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14390@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65185&edit=1
ID: 65185
Updated by: cmb@php.net
Reported by: benjamin dot morel at gmail dot com
Summary: pcntl_errno() is wrongly defined as an alias of
pcntl_strerror()
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: PCNTL related
Operating System: N/A
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
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:
------------------------------------------------------------------------
[2017-01-28 16:47:27] 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:42:37] 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.
------------------------------------------------------------------------
[2013-10-04 17:18:25] 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.
------------------------------------------------------------------------
[2013-07-02 17:26:03] 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()
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65185&edit=1