|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-08 04:26 UTC] derick@php.net
[2003-01-08 04:27 UTC] derick@php.net
[2003-01-08 11:22 UTC] philip@php.net
[2003-01-18 03:04 UTC] philip@php.net
[2003-01-19 00:21 UTC] philip@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 08:00:01 2025 UTC |
Is it possible to create a getCurrentFunctionName() function? If an user defined error occured (for example: you are not getting a valid SQL-resultset with your query) in a function, it would be handy to show the functionname where the error is generated. Possible example: function getQueryResultSet() { // requested code $currentFunctionName = getCurrentFunctionName(); $query="select * from table"; $result = mysql_query($query) or die ("The error occured in ". $currentFunctionName); return $result; }