diff options
| author | Andi Gutmans <andi@php.net> | 1999-12-24 17:39:27 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-12-24 17:39:27 +0000 |
| commit | 3bf1b04cb45a6b9c6ddbf81d74804a582f6361c0 (patch) | |
| tree | 6877a95133675e50757726515246ca7e0ded8d6e /ext/sybase_ct | |
| parent | e28aff2f7aa02824142bf425b65c74b0bcd9622a (diff) | |
| download | php-git-3bf1b04cb45a6b9c6ddbf81d74804a582f6361c0.tar.gz | |
- Move more stuff to ALLOC_ZVAL(). We need to add those FREE_ZVAL()'s now.
Diffstat (limited to 'ext/sybase_ct')
| -rw-r--r-- | ext/sybase_ct/php_sybase_ct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index 201156e06e..d241e9a21c 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -1224,7 +1224,7 @@ PHP_FUNCTION(sybase_fetch_row) array_init(return_value); for (i=0; i<result->num_fields; i++) { - field_content = (pval *) emalloc(sizeof(pval)); + field_content = ALLOC_ZVAL(); *field_content = result->data[result->cur_row][i]; INIT_PZVAL(field_content); pval_copy_constructor(field_content); @@ -1257,7 +1257,7 @@ static void php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS) } for (i=0; i<result->num_fields; i++) { - tmp = (pval *) emalloc(sizeof(pval)); + tmp = ALLOC_ZVAL(); *tmp = result->data[result->cur_row][i]; INIT_PZVAL(tmp); if (PG(magic_quotes_runtime) && tmp->type == IS_STRING) { |
