Fixed bug #65915 (Inconsistent results with require return value)
Fixed compatibility with old PHP versions