php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25733 Change error-report for functions
Submitted: 2003-10-02 12:49 UTC Modified: 2003-10-02 17:23 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: tularis@php.net Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tularis@php.net
New email:
PHP Version: OS:

 

 [2003-10-02 12:49 UTC] tularis@php.net
Description:
------------
When you have a large script, which uses the same few functions multiple times, there should be a way to determine WHERE the function-call came from that made an error.

Eg:
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 49 in /home/site/public_html/db/mysql.php on line 54

doesn't help much when the function is ran from /home/site/public_html/index.php line 16 (and 19,20,22,26,28, etc.)

To ease the bugfixing I suggest that some extra information be added, so these errors would eg. show:
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 49 in /home/site/public_html/db/mysql.php on line 54: called from /home/site/public_html/index.php(16)

Reproduce code:
---------------
n/a

Expected result:
----------------
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 49 in /home/site/public_html/db/mysql.php on line 54: called from /home/site/public_html/index.php(16)

Actual result:
--------------
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 49 in /home/site/public_html/db/mysql.php on line 54

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-02 17:23 UTC] sniper@php.net
RTFM: debug_backtrace()

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 16:01:31 2024 UTC