Fix exceptions in ejs master interp
Update php handler for PHP 5.4.10