[wp-trac] [WordPress Trac] #20059: APC + hard link + __FILE__ doesn't work

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 10:21:03 UTC 2012


#20059: APC + hard link + __FILE__ doesn't work
--------------------------+------------------------------
 Reporter:  rootix        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Description changed by scribu:

Old description:

> I want to manager some wordpress with only one code replication. So i
> make hard link (only wp-config.php, directories and some file are uniq
> and writable by users)
> __FILE__ is generated at compile time and there is lot of problems.
>
> I tried this (in wp-load.php) and it seems to work better :
> /*define( 'ABSPATH', dirname(__FILE__) . '/' );*/
> define( 'ABSPATH', dirname($_SERVER["SCRIPT_FILENAME"]) . '/' );

New description:

 I want to manager some wordpress with only one code replication. So i make
 hard link (only wp-config.php, directories and some file are uniq and
 writable by users)
 {{{__FILE__}}} is generated at compile time and there is lot of problems.

 I tried this (in wp-load.php) and it seems to work better :

 {{{
 /*define( 'ABSPATH', dirname(__FILE__) . '/' );*/
 define( 'ABSPATH', dirname($_SERVER["SCRIPT_FILENAME"]) . '/' );
 }}}

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20059#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list