#45827 [Opn->Fbk]: posix_strerror doesn't return "Success"

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45827
 Updated by:       [email protected]
 Reported By:      felipensp at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         POSIX related
 Operating System: FreeBSD
 PHP Version:      5.2CVS-2008-08-15 (CVS)
 New Comment:

"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?


Previous Comments:
------------------------------------------------------------------------

[2008-08-15 02:11:55] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45827&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.