[PHPLIB-DEV] cvs commit From: ssilk (phplib-dev <email protected>)
Date: 03/06/00

From: ssilk
Date: Tue Mar 7 00:45:31 2000
Modified files:
      php-lib/php/query_sql.inc

Log message:
Slight changes

Index: php-lib/php/query_sql.inc
diff -u php-lib/php/query_sql.inc:1.11 php-lib/php/query_sql.inc:1.12
--- php-lib/php/query_sql.inc:1.11 Wed Feb 2 03:33:08 2000
+++ php-lib/php/query_sql.inc Tue Mar 7 00:45:30 2000
@@ -9,7 +9,7 @@
  * is based in November 1997,
  * it was a collection of functions for PHP/FI and mSQL.
  *
- * $Id: query_sql.inc,v 1.11 2000/02/02 02:33:08 ssilk Exp $
+ * $Id: query_sql.inc,v 1.12 2000/03/06 23:45:30 ssilk Exp $
  *
  */
 
@@ -626,19 +626,21 @@
         //--------------------------------------------------------------
         function dispose_vars($params='') {
                 if (!is_array($params)) $params=ARRAY();
- reset($this->Record);
- while (list($key, $val) = each($this->Record))
- if (ereg("[A-Za-z_][A-Za-z0-9_]*", $key)) {
- if ($params[to_upper]) {
- $field_name = strtoupper($key);
+ for ( reset($this->Record); list($key,$val)=each($this->Record); ) :
+ if (ereg("[A-Za-z_][A-Za-z0-9_]*", $key)) {
+ if ($params[to_upper]) {
+ $field_name = strtoupper($key);
+ } else {
+ # Default behavior, cause phplib
+ # uses always lowercase
+ $field_name = strtolower($key);
+ }
+ if ($this->Q_Debug) echo "'$field_name' => '$val'<br>\n";
+ $GLOBALS[$field_name]=$val;
                         } else {
- # Default behavior, cause phplib
- # uses always lowercase
- $field_name = strtolower($key);
+ if ($this->Q_Debug) echo "Not matching: '$key'<br>\n";
                         }
- global $$field_name;
- $$field_name=$val;
- }
+ endfor;
         }
 
         // Alias to dispose_vars for compatibility to db_usql

-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.