__DIR__ value cached incorrectly when using opcode caching
|Reported by:||JoyceBabu||Owned by:||moo|
Description (last modified by moo)
__DIR__ value is being cached incorrectly when using opcode caching
I have a file at /path/to/root/test/prepend.php with the following code
<?php echo __DIR__ . '/../prepend.php'; ?>
The 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).
Change History (3)
Note: See TracTickets for help on using tickets.