﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	appname	phpversion	exts	sapi	probability	blockedby	blocking
257	__DIR__ value cached incorrectly when using opcode caching	JoyceBabu	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). 
}}}"	defect	closed	minor	2.0.0	cacher	2.0.0	fixed						apache2handler	Always		
