diff options
author | Xinchen Hui <laruence@php.net> | 2015-05-06 10:51:52 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-05-06 10:51:52 +0800 |
commit | 55d94a453243cafc2292920e9c91bd2bc551f2be (patch) | |
tree | c00d368a3c68c2e53167b8da8c6448cdb88801e7 /ext/pdo_firebird/firebird_statement.c | |
parent | 9b3a92a1cad96ff88a61493bf688bc0757933642 (diff) | |
parent | 63282d3321044681e880a997a6360d4b99a07d4f (diff) | |
download | php-git-55d94a453243cafc2292920e9c91bd2bc551f2be.tar.gz |
Merge branch 'master' of git.php.net:php-src
Diffstat (limited to 'ext/pdo_firebird/firebird_statement.c')
-rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index 50901841c8..337ce3fb66 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -197,8 +197,8 @@ static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */ : (var->aliasname_length); col->precision = -var->sqlscale; col->maxlen = var->sqllen; - col->namelen = colname_len; - col->name = cp = emalloc(colname_len + 1); + col->name = zend_string_alloc(colname_len, 0); + cp = col->name->val; if (colname_len > var->aliasname_length) { memmove(cp, var->relname, var->relname_length); cp += var->relname_length; |