Use %e instead of a hardcoded forward slash.
Opcache inlines functions that only return a constant. Disable optimizations to prevent differences in tests where such functions are used (or rewrite the test to not depend on it).
Make sure that the return value is available to observers, even if it is not used by the caller. Closes GH-6422.