Bug->Doc #65185 [Opn->Ver]: pcntl_errno() is wrongly defined as an alias of pcntl_strerror()
| From: | cmb@php.net | Date: | Sat, 28 Jan 2017 16:42:39 +0000 |
| Subject: | Bug->Doc #65185 [Opn->Ver]: 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-14389@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: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
-Package: Documentation problem
+Package: PCNTL related
Operating System: N/A
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> 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.
Previous Comments:
------------------------------------------------------------------------
[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