|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-09-20 21:23 UTC] cmb@php.net
-Type: Bug
+Type: Feature/Change Request
[2020-09-20 21:23 UTC] cmb@php.net
[2021-08-19 21:12 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
[2021-08-19 21:12 UTC] cmb@php.net
[2021-10-11 10:22 UTC] chanrith dot tang at allweb dot com dot kh
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
Description: ------------ When I have to debug an error like this: Fatal error: Cannot redeclare session() (previously declared in D:\web\sessions.php:2) ...it does not tell me what file included the file with the session function. That forces me to do pointlessly convoluted debug. I've tried doing back tracing however the error is reported and the process shuts down so I don't get the second back trace. Test script: --------------- An overly simplified version: <?php include('file1.php');//includes session.php. include('file2.php');//includes session.php; error spawns, no second back trace. ?> Expected result: ---------------- A much more useful error message would look something like: Fatal error: Cannot redeclare session() (previously declared in D:\web\sessions.php:2, file included by file1.php, file included by file2.php).