php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28716 [chm] bug on function.php-uname.html
Submitted: 2004-06-09 21:24 UTC Modified: 2004-06-09 22:27 UTC
From: devnull at latinmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.7 OS: windows
Private report: No CVE-ID: None
 [2004-06-09 21:24 UTC] devnull at latinmail dot com
Description:
------------
I have found a bug on page function.php-uname.html
[chm date: 2003-09-06]...

It seems that "Example 731. A few OS related constant examples" has a problem. The "DIRECTORY_SEPARATOR" constant contains as its name announces, "\" or "/", not ":" neither ";".

Reproduce code:
---------------
<?php 
// *nix 
echo DIRECTORY_SEPARATOR; // : 
echo PHP_SHLIB_SUFFIX;    // so 

// Win* 
echo DIRECTORY_SEPARATOR; // ; 
echo PHP_SHLIB_SUFFIX;    // dll 
?>


Expected result:
----------------
;dll;dll

Actual result:
--------------
\dll\dll

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-09 22:27 UTC] nlopess@php.net
I've already solved this problem a while ago.
It will be fixed in the next CHM build.

In the meantime, take a look at: http://php.net/php-uname
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 12:01:28 2024 UTC