|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-18 23:03 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2011-10-18 23:03 UTC] felipe@php.net
[2011-10-19 03:00 UTC] anon at anon dot anon
[2011-10-19 07:07 UTC] tyrael@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ running the test script(via php -n -f test.php) in my home directory gives me: Fatal error: Uncaught exception 'Exception' with message 'Foo' in /home/tyrael/test.php:8 Stack trace: #0 /home/tyrael/test.php(4): b() #1 /home/tyrael/test.php(11): a() #2 {main} thrown in /home/tyrael/test.php on line 8 running the same script in a directory with a long path gives me: Fatal error: Uncaught exception 'Exception' with message 'Foo' in /home/tyrael/12345678901234567890123456789012345678901234567890/1234567890123456 7890123456789012345678901234567890/123456789012345678901234567890123456789012345 67890/12345678901234567890123456789012345678901234567890/12345678901234567890123 456789012345678901234567890/12345678901234567890123456789012345678901234567890/1 2345678901234567890123456789012345678901234567890/123456789012345678901234567890 12345678901234567890/foo/12345678901234567890123456789012345678901234567890/1234 5678901234567890123456789012345678901234567890/123456789012345678901234567890123 45678901234567890/12345678901234567890123456789012345678901234567890/12345678901 234567890123456789012345678901234567890/1234567890123456789012345678901234567890 1234567890/12345678901234567890123456789012345678901234567890/123456789012345678 90123456789012345678901234567890/12345678901234567890123456789012345678901234567 890/12345678901234567890123456789012345678901234567890/1234567890123456789012345 67890123456 in /home/tyrael/12345678901234567890123456789012345678901234567890/1234567890123456 7890123456789012345678901234567890/123456789012345678901234567890123456789012345 67890/12345678901234567890123456789012345678901234567890/12345678901234567890123 456789012345678901234567890/12345678901234567890123456789012345678901234567890/1 2345678901234567890123456789012345678901234567890/123456789012345678901234567890 12345678901234567890/foo/12345678901234567890123456789012345678901234567890/1234 5678901234567890123456789012345678901234567890/123456789012345678901234567890123 45678901234567890/12345678901234567890123456789012345678901234567890/12345678901 234567890123456789012345678901234567890/1234567890123456789012345678901234567890 1234567890/12345678901234567890123456789012345678901234567890/123456789012345678 90123456789012345678901234567890/12345678901234567890123456789012345678901234567 890/12345678901234567890123456789012345678901234567890/1234567890123456789012345 6789012345678901234567890/12345678901234567890123456789012345678901234567890/123 45678901234567890123456789012345678901234567890/12345678901234567890123456789012 345678901234567890/12345678901234567890123456789012345678901234567890/1234567890 1234567890123456789012345678901234567890/123456789012345678901234567890123456789 01234567890/12345678901234567890123456789012345678901234567890/test.php on line 8 As you can see, the output doesn't contain the Stack trace anymore. Test script: --------------- // create a directory with a long path and run this script from that directory <?php function a(){ b(); } function b(){ throw new Exception("Foo"); } a(); Expected result: ---------------- it should contain the full stack trace Actual result: -------------- the stack trace gets truncated