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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

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

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 05:01:34 2025 UTC