I have a .php page that generates a Fatal error:
...
#2 [path1]/header.php(22): include('/Library/WebSer...')
#3 [path2]/index.php(4): include('/Library/WebSer...')
...
(where I’ve substituted [path#]
for the path to files in the traceback) and in both, the file being included is truncated and presented as "/Library/WebSer..."
with ellipses instead of the full path and most importantly, without the file_name.
Based on PHP – Stop displaying full path in errors, I take it that once upon a time PHP did not do this, i.e., when reporting an error, it gave the full path, including the file_name, but maybe I’m misunderstanding this 11 year old question and answer.
I’ve looked through all of the php.ini directives at https://www.php.net/manual/en/ini.list.php, and don’t see one that addresses what I want, i.e., I want the full path, including file_name, displayed instead of a truncated path with ellipses at the end like “include(‘/Library/WebSer…’)”.
Is there way to force display of the full path in the “include()”?
Thank you.