diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-11 14:53:59 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-11 14:53:59 +0000 |
commit | 1718f1bd33e3337843df6e4b3d33f4221cb8dc59 (patch) | |
tree | 80e451b7da78769b4f96ac643375b13d74a1a358 /ext/pgsql/pgsql.c | |
parent | 889988763f48858f06db1ccb715c6b0938f66d71 (diff) | |
download | php-git-1718f1bd33e3337843df6e4b3d33f4221cb8dc59.tar.gz |
Print function names in error messages
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 33bd338894..bc0dca5aa1 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -1029,7 +1029,8 @@ static void php_pgsql_get_field_info(INTERNAL_FUNCTION_PARAMETERS, int entry_typ convert_to_long_ex(field); if (Z_LVAL_PP(field) < 0 || Z_LVAL_PP(field) >= PQnfields(pgsql_result)) { - php_error(E_WARNING,"Bad field offset specified"); + php_error(E_WARNING,"%s() bad field offset specified", + get_active_function_name(TSRMLS_C)); RETURN_FALSE; } |