@QuolonelQuestions You'd have to change the Bucket structure and replace the string&h fields with a zval, and then probably put the hash in the Z_EXTRA field of the zval. That way you could keep the bucket the same size, but it would be a major BC break for internal code and especially third party extensions
I think it'll be a very big task, the reason I mentioned extensions is because I imagine that it would affect both first and third party extensions, which combined is a lot of code
How does __DIR__ actually work (or not)? In the trivial case it gives you the directory of the current source file, but there are certainly cases where it does not. For example, PHPUnit has undocumented test functionality for PHPT format, similar to PHP's own tests, with support for a FILE_EXTERNAL section.
If __DIR__ is used by the file pointed to by FILE_EXTERNAL, it seems to resolve to the directory of the test including it, rather than the external source itself (probably due to eval? not sure how PHPUnit implements this)