php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: felipensp at gmail dot com
New email:
PHP Version: OS:

 

 [2008-08-15 02:11 UTC] felipensp at gmail dot com
Description:
------------
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:
---------------
<?php
print posix_strerror(0);
?>

Expected result:
----------------
Success

Actual result:
--------------
Unknown error: 0

Patches

Pull Requests

History

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

See also: http://osdir.com/ml/os.freebsd.devel.standards/2003-04/msg00036.html

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: Fri Oct 04 06:01:26 2024 UTC