grep codebase for "register_globals" (note I have left the string used in environment test there intentionally)
yay - gone from PHP 5.4...
MDL-43537 cleanup old environment check stuff
MDL-42931 Decide Moodle 2.7 requirements and push them to environment.xml
MDL-43528 cleanup magic quotes stuff in 2.7