]> granicus.if.org Git - php/commitdiff
fix typos
authorAntony Dovgal <tony2001@php.net>
Sun, 7 Oct 2007 12:23:29 +0000 (12:23 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 7 Oct 2007 12:23:29 +0000 (12:23 +0000)
ext/mysqlnd/mysqlnd_ps.c
ext/mysqlnd/mysqlnd_result.c

index 19fc79ef03b83e26c5f0d6897e91d1c924b2b01a..219da141c8fd4e3ce33a70e0ca7c8f8e2450b970 100644 (file)
@@ -1494,7 +1494,7 @@ void mysqlnd_stmt_separate_result_bind(MYSQLND_STMT * const stmt TSRMLS_DC)
        for (i = 0; i < stmt->field_count; i++) {
                /* Let's try with no cache */
                if (stmt->result_bind[i].bound == TRUE) {
-                       DBG_INF_FMT("%d has refcount=%u", i, ZVAL_REFCOUNT(stmt->result_bind[i].zv));
+                       DBG_INF_FMT("%d has refcount=%u", i, Z_REFCOUNT_P(stmt->result_bind[i].zv));
                        /*
                          We have to separate the actual zval value of the bound
                          variable from our allocated zvals or we will face double-free
index 7f037d1fdb47ec19919a46f3006551b7053d60bb..80fcf531f6389d25b936f9118cbd70cda5aaff18 100644 (file)
@@ -1138,7 +1138,7 @@ MYSQLND_METHOD(mysqlnd_res, fetch_field_data)(MYSQLND_RES *result, unsigned int
 
        *return_value = **entry;
        zval_copy_ctor(return_value);
-       Z_REFCOUNT_P(return_value) = 1;
+       Z_SET_REFCOUNT_P(return_value, 1);
        zval_dtor(&row);
 
        DBG_VOID_RETURN;