nette/build-tools — pull request #4 by OzzyCzech (2012-06-22 11:13:59+00:00)
Title: Return Undefined offset when result of eval is directory

It's generate fatal error Undefined offset when $newFile contains path.

Here is example of corrupted code:

public static function file($file, $dir = __DIR__) {
return function () use ($file, $dir) {
include $dir . DIRECTORY_SEPARATOR . $file;
};
}