#41 included files with path as a constant not cached

closed-fixed
nobody
None
5
2003-09-22
2003-09-18
David
No

define( 'ROOT_PATH', "/Apache2/htdocs/" );
require ROOT_PATH."functions/class.start.php";

class.start.php isn't cached...

MMCache 2.3.24-CVS [shm:win32 sem:win32], PHP 4.3.3
[ZE 1.3.0 TS], Apache 2.0 Handler [Apache], Windows 9x
4.10

Discussion

  • Dmitry Stogov

    Dmitry Stogov - 2003-09-18

    Logged In: YES
    user_id=124551

    Thank you for you report. I have found the error in PHP and
    report it to php group. Also I made a workaround in MMCache.

    The problem is not in constant, but in absolute path without
    drive. If you will change your code in the following way it will
    work.
    define( 'ROOT_PATH', "C:/Apache2/htdocs/" );
    require ROOT_PATH."functions/class.start.php";

    But don't do it. The fixed version of MMCache works with
    original code fine. You can try to get latest development
    version from sourceforge CVS (mmcache.c revision: 1.162).

     
  • Dmitry Stogov

    Dmitry Stogov - 2003-09-18
    • status: open --> open-fixed
     
  • David

    David - 2003-09-18

    Logged In: YES
    user_id=851701

    I tried changing all ROOT_PATH to $ROOT_PATH and added
    $ROOT_PATH = "/Apache2/htdocs/";
    It worked...MMCache did cached those scripts

    Unfortunatly i can't compile anything under windows
    Will wait for the next version, just using for testing purpose
    (heck, i wouldn't run 98 in a production environment :p)

    Thanks!

     
  • Dmitry Stogov

    Dmitry Stogov - 2003-09-22
    • status: open-fixed --> closed-fixed
     
  • Dmitry Stogov

    Dmitry Stogov - 2003-09-22

    Logged In: YES
    user_id=124551

    The BUG is fixed in Turck MMCache 2.4.0.

     
  • Dmitry Stogov

    Dmitry Stogov - 2003-09-22

    Logged In: YES
    user_id=124551

    The BUG is fixed in Turck MMCache 2.4.0.

     

Log in to post a comment.