updated core codebase for PHP v5.2.4 or greater