]> granicus.if.org Git - php/commitdiff
Put these in an ifdef because they are not used at all if the zval cache
authorAndrey Hristov <andrey@php.net>
Thu, 11 Jun 2009 17:54:04 +0000 (17:54 +0000)
committerAndrey Hristov <andrey@php.net>
Thu, 11 Jun 2009 17:54:04 +0000 (17:54 +0000)
is off.

ext/mysqlnd/mysqlnd_wireprotocol.c

index c8df09f3cc83096e29895ee1d2a98a95fd6d1329..8619eae2e72717cba2977af5145b987591e65125 100644 (file)
@@ -1362,8 +1362,10 @@ void php_mysqlnd_rowp_read_binary_protocol(MYSQLND_MEMORY_POOL_CHUNK * row_buffe
        zend_uchar *null_ptr, bit;
        zval **current_field, **end_field, **start_field;
        zend_bool as_unicode = conn->options.numeric_and_datetime_as_unicode;
+#ifdef USE_ZVAL_CACHE
        zend_bool allocated;
        void *obj = NULL;
+#endif
 
        DBG_ENTER("php_mysqlnd_rowp_read_binary_protocol");