1<?php 2 3trigger_error(basename(__FILE__)); 4$ex = new Exception(); 5echo 'Exception in ', basename($ex->getFile()), ' on line ', $ex->getLine(), "\n"; 6