On 01 October at 04:00, Andreas Gohr wrote: > Sun Sep 30 20:42:50 CEST 2007 Andreas Gohr <andi[at]splitbrain.org> > * don't use realpath() anymore (FS#1261 and others) > > The use of realpath() to clean up relative file names caused some > trouble in certain setups relying on symlinks or having restricitve > file structure setups. > > This patch replaces all realpath() calls with a PHP only replacement > which should solve those problems. Hi Unfortunately this is not enough in my symlinked farm. The problem comes from __FILE__ being the **absolute** path to a file and thus breaking when used in a symlinked context. With the patches applied, you can see the broken farm on http://www-isis.u-strasbg.fr/bug/farm/ (try any of the five available animals in this farm). __FILE__, DOKU_INC and $_SERVER['SCRIPT_FILENAME'] are displayed in mediamanager.php so one can see the problem. For example in http://www-isis.u-strasbg.fr/bug/farm/3/lib/exe/mediamanager.php where __FILE__ (and thus DOKU_INC which uses it) has lost the symlinked directory name as it resolves to the absolute path in the local filesystem. That's why my farm patch is not only getting rid of realpath() but also of __FILE__. Have fun! -- bug -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist