This generates depreciation warnings in earlier versions of php, but in 5.4 it errors out. modified: template.php