Add some logging to evaling legacy PHP tags in smarty