|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45827 posix_strerror doesn't return "Success"
Submitted: 2008-08-15 02:11 UTC Modified: 2008-08-23 01:00 UTC
From: felipensp at gmail dot com Assigned:
Status: No Feedback Package: POSIX related
PHP Version: 5.2CVS-2008-08-15 (CVS) OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: felipensp at gmail dot com
New email:
PHP Version: OS:


 [2008-08-15 02:11 UTC] felipensp at gmail dot com
On FreeBSD the posix_strerror(0) doesn't return "Success" as says 
the documentation, thus the test 
ext/posix/tests/posix_strerror_variation1.phpt fails.

Reproduce code:
print posix_strerror(0);

Expected result:

Actual result:
Unknown error: 0


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-15 15:58 UTC]
"The strerror() function shall map the error number in errnum to a locale-dependent error message string.." 

See also:

Is this bug report about PHP or FreeBSD or about the test being completely bogus?
 [2008-08-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 06:01:31 2024 UTC