Does re-throwing an exception in PHP destroy the stack trace?
问题 In C#, doing the following would destroy the stack trace of an exception: try{ throw new RuntimeException(); } catch(Exception e){ //Log error //Re-throw throw e; } Because of this, using throw rather than throw e is preferred. This will let the same exception propagate upwards, instead of wrapping it in a new one. However, using throw; without specifying the exception object is invalid syntax in PHP. Does this problem simply not exist in PHP? Will using throw $e as follows not destroy the