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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: benjamin dot morel at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=eecd69fcd938d5f3c275b8a87f6c7569d4ac3d5a
Log: Fix #65185: pcntl_errno() is wrongly defined as an alias of pcntl_strerror()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 06:01:26 2024 UTC