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 http://bugs.php.net/bug.php?id=41655) 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 < symfony.safe-mode.patch
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.
- symfony.safe-mode.patch (17.2 kB) -
Patch for symfony to avoid the usage of php's buggy glob()-function, added by m.schuhfuss on 11/16/08 17:18:28.