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
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: 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: Sat Dec 21 16:01:28 2024 UTC