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
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: devnull at latinmail dot com
New email:
PHP Version: OS:

 

 [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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC