[PHP-DEV] CVS update: php3/functions From: sas (php-dev <email protected>)
Date: 12/28/98

Date: Monday December 28, 1998 @ 12:37
Author: sas

Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv2279

Modified Files:
        pgsql.c
Log Message:
our estrndup'ed string doesn't need to be duplicated again

Index: php3/functions/pgsql.c
diff -c php3/functions/pgsql.c:1.75 php3/functions/pgsql.c:1.76
*** php3/functions/pgsql.c:1.75 Mon Dec 21 00:24:20 1998
--- php3/functions/pgsql.c Mon Dec 28 12:37:43 1998
***************
*** 28,34 ****
     +----------------------------------------------------------------------+
   */
   
! /* $Id: pgsql.c,v 1.75 1998/12/21 05:24:20 sas Exp $ */
  
  #include <stdlib.h>
  
--- 28,34 ----
     +----------------------------------------------------------------------+
   */
   
! /* $Id: pgsql.c,v 1.76 1998/12/28 17:37:43 sas Exp $ */
  
  #include <stdlib.h>
  
***************
*** 962,968 ****
  
                  add_get_index_stringl(return_value, i, tmp, element_len, (void **) &pval_ptr, 0);
              } else {
! add_get_index_stringl(return_value, i, element, element_len, (void **) &pval_ptr, 1);
              }
                          field_name = PQfname(pgsql_result,i);
              _php3_hash_pointer_update(return_value->value.ht, field_name, strlen(field_name)+1, pval_ptr);
--- 962,968 ----
  
                  add_get_index_stringl(return_value, i, tmp, element_len, (void **) &pval_ptr, 0);
              } else {
! add_get_index_stringl(return_value, i, element, element_len, (void **) &pval_ptr, 0);
              }
                          field_name = PQfname(pgsql_result,i);
              _php3_hash_pointer_update(return_value->value.ht, field_name, strlen(field_name)+1, pval_ptr);

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>