Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [10-2007 Date Index] [Date Next] || [Thread Prev] [10-2007 Thread Index] [Thread Next]

[dokuwiki] Re: darcs changes 2007-10-01

  • From: Guy Brand <gb@xxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 3 Oct 2007 21:49:53 +0200
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




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.