|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-12 02:55 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 08 01:00:01 2026 UTC |
Description: ------------ If the dir isnt readable by the webserver (apache in my case) glob() wont list a thing. Glob wont return an error like 'permission denied' though alike other functions do. It would be nice to see that when glob() cant read the directory it will return an error or a notice. Reproduce code: --------------- <?php error_reporting(E_ALL); print_r(glob('*.png')); ?> The dir in which the png file was, was chmodded to 711 so apache only had execution rights. Expected result: ---------------- Warning: permission denied .... Array( ) Actual result: -------------- Array( )