6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11949] PHP ERROR: Invalid argument supplied for foreach()
*
Your Email Address
*
Spam protection
Enter the letters below:
.___ .. .__. . [__ || | | | [___\__||___|__\\__|
Comment
> You are right, it is *supposed* to return an empty array. However, if > the openbasedir is activated, the glob function returns false instead > of an empty array. In the case some matching file exists, glob > returns a populated array regardless of the activation of the > openbasedir. > See e.g. > http://stackoverflow.com/questions/9213249/behaviour-of-glob-function-in-php-is-different-with-open-basedir or > https://bugs.php.net/bug.php?id=47358 > > According to PHP guys, searching for a non-existent file in the case > openbasedir is activated should give an error and not the answer - > there is no file matching your search (empty array). > > So the system configuration required for occurrence of this error is > non-existence of the files in the given directory and having > openbasedir activated.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers