summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-03-12 16:53:51 +0300
committerDmitry Stogov <dmitry@zend.com>2015-03-12 16:53:51 +0300
commit8633685675692e9a926cf9f97b1c406c37497ddf (patch)
treee0c82ad945a575f90f90dfd402c7e2dc013a3acc /ext/pgsql/pgsql.c
parent0e30c543ec8e6c371e0aef6e125e7b90f4b1b790 (diff)
downloadphp-git-8633685675692e9a926cf9f97b1c406c37497ddf.tar.gz
Use specialized macro for string zval creation
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 2e8c6633db..4cbd218450 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -72,7 +72,7 @@
smart_str s = {0}; \
smart_str_append_unsigned(&s, oid); \
smart_str_0(&s); \
- RETURN_STR(s.s); \
+ RETURN_NEW_STR(s.s); \
} \
RETURN_LONG((zend_long)oid); \
} while(0)
@@ -2431,7 +2431,7 @@ PHP_FUNCTION(pg_field_table)
smart_str oidstr = {0};
smart_str_append_unsigned(&oidstr, oid);
smart_str_0(&oidstr);
- RETURN_STR(oidstr.s);
+ RETURN_NEW_STR(oidstr.s);
} else
#endif
RETURN_LONG((zend_long)oid);
@@ -2536,7 +2536,7 @@ static void php_pgsql_get_field_info(INTERNAL_FUNCTION_PARAMETERS, int entry_typ
smart_str s = {0};
smart_str_append_unsigned(&s, oid);
smart_str_0(&s);
- RETURN_STR(s.s);
+ RETURN_NEW_STR(s.s);
} else
#endif
{
@@ -3515,7 +3515,7 @@ PHP_FUNCTION(pg_lo_read)
buf->len = nbytes;
buf->val[buf->len] = '\0';
- RETURN_STR(buf);
+ RETURN_NEW_STR(buf);
}
/* }}} */
@@ -4363,7 +4363,7 @@ PHP_FUNCTION(pg_escape_string)
}
to = zend_string_realloc(to, to->len, 0);
- RETURN_STR(to);
+ RETURN_NEW_STR(to);
}
/* }}} */