]> granicus.if.org Git - php/commitdiff
MFB and unify code
authorAndrey Hristov <andrey@php.net>
Wed, 10 Oct 2007 14:32:01 +0000 (14:32 +0000)
committerAndrey Hristov <andrey@php.net>
Wed, 10 Oct 2007 14:32:01 +0000 (14:32 +0000)
ext/odbc/php_odbc.c

index a5b6ff317aa2b821dbd324e0ca0ed8c286b615d6..07836b622277c4bd0806ab0bedb226e67dce8f10 100644 (file)
@@ -1567,8 +1567,7 @@ PHP_FUNCTION(odbc_fetch_into)
                result->fetched++;
 
        for(i = 0; i < result->numcols; i++) {
-               ALLOC_ZVAL(tmp);
-               Z_SET_REFCOUNT_P(tmp, 1);
+               MAKE_STD_ZVAL(tmp);
                Z_TYPE_P(tmp) = IS_STRING;
                Z_STRLEN_P(tmp) = 0;
                sql_c_type = SQL_C_CHAR;