|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-21 12:57 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 23:00:01 2026 UTC |
Description: ------------ The documentation for the glob() function says: GLOB_MARK - Adds a slash to each item returned This seems to be incorrect, since the GLOB_MARK flag actually adds a DIRECTORY_SEPARATOR to the returned items that are directories. Of course, what is currently described in the documentation would not make much sense anyway... Tested with PHP 4.4.8 under vmlinuz 2.6.9-42.0.3.EL.xs0.4.0.263xenU Tested with PHP 5.2.5 under Windows Vista Reproduce code: --------------- glob("./*",GLOB_MARK) Expected result: ---------------- array("./file.ext/","./directory.ext/") Actual result: -------------- array("./file.ext","./directory.ext/")