From:             [EMAIL PROTECTED]
Operating system: any
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  Change error-report for functions

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 bug report at http://bugs.php.net/?id=25733&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25733&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25733&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25733&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25733&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25733&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25733&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25733&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25733&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25733&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25733&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25733&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25733&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25733&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25733&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25733&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25733&r=float

Reply via email to