You must first sign up to be able to contribute.

Due to a Bug in php < 5.2.5 and perhaps above the glob()-function don't work properly when safe_mode is enabled. (see To solve this issue, the symfony-core needs to be patched not to use the glob()-function. Instead, a reimplementation of this function is used. To apply this patch to the symfony-libraries, freeze your project, change to the lib/symfony-directory and execute

patch -p1 <

In this patch basically all calls of the glob-function are redirected to the method sfToolkit::glob() (which I thought would be a good place for it). The function sfToolkit::glob() tries to use php's glob()-function - if this fails, a php-implementation of the glob-function will do the work.