How can I get the full string of PHP’s getTraceAsString()?
问题 I'm using getTraceAsString() to get a stack trace but the string is being truncated for some reason. Example, an exception is thrown and I log the string using: catch (SoapFault $e) { error_log( $e->getTraceAsString() ) } The string thats prints out is: #0 C:\Somedirectory\Somedirectory\Somedirectory\Somedir\SomeScript.php(10): SoapClient->SoapClient('http://www.ex...') How can I get the full string to print? 回答1: I created this function to return a stack trace with no truncated strings: