CVS update: php3/functions

From: Date: Mon, 28 Dec 1998 20:31:02 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3148@lists.php.net to get a copy of this message
Date: Monday December 28, 1998 @ 15:31 Author: zeev Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv11636/functions Modified Files: pgsql.c Log Message: Don't add NULL elements to the result set Index: php3/functions/pgsql.c diff -c php3/functions/pgsql.c:1.78 php3/functions/pgsql.c:1.79 *** php3/functions/pgsql.c:1.78 Mon Dec 28 14:22:37 1998 --- php3/functions/pgsql.c Mon Dec 28 15:31:00 1998 *************** *** 28,34 **** +----------------------------------------------------------------------+ */ ! /* $Id: pgsql.c,v 1.78 1998/12/28 19:22:37 eschmid Exp $ */ #include <stdlib.h> --- 28,34 ---- +----------------------------------------------------------------------+ */ ! /* $Id: pgsql.c,v 1.79 1998/12/28 20:31:00 zeev Exp $ */ #include <stdlib.h> *************** *** 913,923 **** } else { tmp = estrndup(element, element_len); } } else { ! tmp = estrdup(empty_string); ! element_len = 0; } - add_index_stringl(return_value, i, tmp, element_len, 0); } } /* }}} */ --- 913,922 ---- } else { tmp = estrndup(element, element_len); } + add_index_stringl(return_value, i, tmp, element_len, 0); } else { ! /* element is NULL, don't add it */ } } } /* }}} */ -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3148) next »