Yasuo Ohgaki wrote: > yohgaki Mon Mar 11 09:53:59 2002 EDT > > Modified files: > /php4/ext/pgsql pgsql.c > Log: > Print function names in error messages
Hi all, Currently pgsql module's error message is not consistent with other modules' error message format and does not print function names. I would like to fix that as follows. (This is only one of them, but there are many error messages like this) If you have opinion, please let me know. > > > Index: php4/ext/pgsql/pgsql.c > diff -u php4/ext/pgsql/pgsql.c:1.153 php4/ext/pgsql/pgsql.c:1.154 > --- php4/ext/pgsql/pgsql.c:1.153 Mon Mar 11 02:23:07 2002 > +++ php4/ext/pgsql/pgsql.c Mon Mar 11 09:53:59 2002 > @@ -19,7 +19,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: pgsql.c,v 1.153 2002/03/11 07:23:07 yohgaki Exp $ */ > +/* $Id: pgsql.c,v 1.154 2002/03/11 14:53:59 yohgaki Exp $ */ > > #include <stdlib.h> > > @@ -1029,7 +1029,8 @@ > 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; > } > > > -- Yasuo Ohgaki [EMAIL PROTECTED] -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php