From: Yasuo Ohgaki Date: Fri, 19 Apr 2002 07:47:53 +0000 (+0000) Subject: Leave "" (null string) when converting. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~578 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f463be840888f921d74eb5d95bf47b80f6d60431;p=php Leave "" (null string) when converting. --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 51fe1ef421..cbdad171f8 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -3180,7 +3180,7 @@ PHPAPI int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval 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;