do it the ini way please, u just broken 2/3 of my apps now....
-- "Marc Boeren" <[EMAIL PROTECTED]> wrote in message news:cvsmboeren1035469574@;cvsserver... > mboeren Thu Oct 24 10:26:14 2002 EDT > > Modified files: > /php4/ext/dbx dbx_oci8.c > Log: > Changed the dbx_oci8 behaviour to return lowercase column-names, > which is a hack but at least it makes it easier for users > to create portable apps. > # Perhaps this should be controlled by a (.ini?) directive or define > # which determines the change (toupper, tolower, nochange)? > > > Index: php4/ext/dbx/dbx_oci8.c > diff -u php4/ext/dbx/dbx_oci8.c:1.7 php4/ext/dbx/dbx_oci8.c:1.8 > --- php4/ext/dbx/dbx_oci8.c:1.7 Thu Oct 24 08:52:13 2002 > +++ php4/ext/dbx/dbx_oci8.c Thu Oct 24 10:26:14 2002 > @@ -20,10 +20,11 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: dbx_oci8.c,v 1.7 2002/10/24 12:52:13 derick Exp $ */ > +/* $Id: dbx_oci8.c,v 1.8 2002/10/24 14:26:14 mboeren Exp $ */ > > #include "dbx.h" > #include "dbx_oci8.h" > +#include "ext/standard/php_string.h" /* for auto-change column names to lowercase*/ > > #define OCI_ASSOC 1<<0 > #define OCI_NUM 1<<1 > @@ -178,6 +179,7 @@ > return 0; > } > FREE_ZVAL(zval_column_index); > + php_strtolower(Z_STRVAL_P(returned_zval), Z_STRLEN_P(returned_zval)); > MOVE_RETURNED_TO_RV(rv, returned_zval); > return 1; > } > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php