]> granicus.if.org Git - php/commitdiff
fix bug #50101 (name clash between global and local variable)
authorAntony Dovgal <tony2001@php.net>
Tue, 8 Jun 2010 13:27:30 +0000 (13:27 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 8 Jun 2010 13:27:30 +0000 (13:27 +0000)
TSRM/tsrm_virtual_cwd.c

index 3ccc729fc6f786ffbdf200bdf4eef9c7297f1689..d51e01aa3ea125978b2c0d83f40de6bde086f490 100644 (file)
@@ -298,19 +298,19 @@ static int php_is_file_ok(const cwd_state *state)  /* {{{ */
 }
 /* }}} */
 
-static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC) /* {{{ */
+static void cwd_globals_ctor(virtual_cwd_globals *cwd_g TSRMLS_DC) /* {{{ */
 {
-       CWD_STATE_COPY(&cwd_globals->cwd, &main_cwd_state);
-       cwd_globals->realpath_cache_size = 0;
-       cwd_globals->realpath_cache_size_limit = REALPATH_CACHE_SIZE;
-       cwd_globals->realpath_cache_ttl = REALPATH_CACHE_TTL;
-       memset(cwd_globals->realpath_cache, 0, sizeof(cwd_globals->realpath_cache));
+       CWD_STATE_COPY(&cwd_g->cwd, &main_cwd_state);
+       cwd_g->realpath_cache_size = 0;
+       cwd_g->realpath_cache_size_limit = REALPATH_CACHE_SIZE;
+       cwd_g->realpath_cache_ttl = REALPATH_CACHE_TTL;
+       memset(cwd_g->realpath_cache, 0, sizeof(cwd_g->realpath_cache));
 }
 /* }}} */
 
-static void cwd_globals_dtor(virtual_cwd_globals *cwd_globals TSRMLS_DC) /* {{{ */
+static void cwd_globals_dtor(virtual_cwd_globals *cwd_g TSRMLS_DC) /* {{{ */
 {
-       CWD_STATE_FREE(&cwd_globals->cwd);
+       CWD_STATE_FREE(&cwd_g->cwd);
        realpath_cache_clean(TSRMLS_C);
 }
 /* }}} */