#25733 [Opn->Bgs]: Change error-report for functions

From: Date: Thu, 02 Oct 2003 21:23:07 +0000
Subject: #25733 [Opn->Bgs]: Change error-report for functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48468@lists.php.net to get a copy of this message
ID: 25733 Updated by: sniper@php.net Reported By: tularis@php.net -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: any PHP Version: Irrelevant New Comment: RTFM: debug_backtrace() Previous Comments: ------------------------------------------------------------------------ [2003-10-02 12:49:56] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25733&edit=1

« previous php.bugs (#48468) next »