From: tyrael
Operating system:
PHP version: 5.4.0beta1
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Stack trace truncated for long paths
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
--
Edit bug report at https://bugs.php.net/bug.php?id=60074&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60074&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60074&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60074&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60074&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60074&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60074&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60074&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60074&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60074&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60074&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60074&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60074&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60074&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60074&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60074&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60074&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60074&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60074&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60074&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60074&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60074&r=mysqlcfg