ZF-2200: Invalid argument supplied for foreach


I found some Warnings in my PHP error log so i decide to create this patch to fix this warning.


The diff to fix this warning.

This patch fixes all glob warnings in the File backend.

It seems to be the same problem than ZF#2271

It should be fixed in trunk

Sorry Marco because I didn't realize that these two tasks were linked (so I didn't use your patches)