Do not use realpath() to compute a simple name.
Check cache before doing intensive CPU/IO ops.
Merge branch 'feature_4223'
Fix typo.
Do not initialize PDO until it is really used.