Changes between Initial Version and Version 1 of Ticket #257


Ignore:
Timestamp:
2011-02-24T09:11:00Z (5 years ago)
Author:
moo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #257 – Description

    initial v1  
    1 __DIR__ value is being cached incorrectly when using opcode caching
     1!__DIR!__ value is being cached incorrectly when using opcode caching
    22
    33I have a file at /path/to/root/test/prepend.php with the following code
    44
     5{{{
    56<?php
    67echo __DIR__ . '/../prepend.php';
    78?>
     9}}}
    810
     11{{{
    912The file is included from /path/to/root/test/index.php and /path/to/root/test/inner/index.php. The expected out (and the output when XCache is disabled) is '/path/to/root/test/../prepend.php'. When I access any of the above two files, the first request returns the expected output. From the second request onwards, the value of __DIR__ is cached (the cached value is the relative path of /path/to/root/test/ from the requested file (ie '.' or '..'), which is also wrong).
     13}}}