Re: cvs: php4 /ext/pgsql pgsql.c

From: Date: Fri, 19 Apr 2002 08:02:19 +0000
Subject: Re: cvs: php4 /ext/pgsql pgsql.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11225@lists.php.net to get a copy of this message
Are you sure there aren't a lot of site out there who depend on this behavior? (even if it's wrong) Andi At 07:47 19/04/2002 +0000, Yasuo Ohgaki wrote:
yohgaki         Fri Apr 19 03:47:55 2002 EDT
Modified files:
    /php4/ext/pgsql     pgsql.c
Log: Leave "" (null string) when converting. Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.176 php4/ext/pgsql/pgsql.c:1.177
--- php4/ext/pgsql/pgsql.c:1.176        Mon Apr  8 00:21:04 2002
+++ php4/ext/pgsql/pgsql.c      Fri Apr 19 03:47:53 2002
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: pgsql.c,v 1.176 2002/04/08 04:21:04 yohgaki Exp $ */ +/* $Id: pgsql.c,v 1.177 2002/04/19 07:47:53 yohgaki Exp $ */ #include <stdlib.h> @@ -3180,7 +3180,7 @@
                                switch (Z_TYPE_PP(val)) {
                                        case IS_STRING:
                                                if (Z_STRLEN_PP(val) == 0) {
- ZVAL_STRING(new_val, "NULL", 1);
+ ZVAL_STRING(new_val, empty_string, 0);
                                                }
                                                else {
                                                        Z_TYPE_P(new_val) = IS_STRING;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.cvs (#11225) next »