Changeset 329 for trunk/xcache.c
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svnmerge-integrated
set to
False
/branches/1.2 merged eligible
-
Property
svnmerge-integrated
set to
False
-
trunk/xcache.c
r323 r329 1865 1865 /* }}} */ 1866 1866 1867 #define VAR_DISABLED_WARNING() do { \ 1868 php_error_docref(NULL TSRMLS_CC, E_WARNING, "xcache.var_size is either 0 or too small to enable var data caching"); \ 1869 } while (0) 1870 1867 1871 static int xc_entry_init_key_var(xc_entry_t *xce, zval *name TSRMLS_DC) /* {{{ */ 1868 1872 { … … 1906 1910 xc_entry_data_var_t var; 1907 1911 zval *name; 1912 1913 if (!xc_var_caches) { 1914 VAR_DISABLED_WARNING(); 1915 RETURN_NULL(); 1916 } 1908 1917 1909 1918 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { … … 1939 1948 zval *value; 1940 1949 1950 if (!xc_var_caches) { 1951 VAR_DISABLED_WARNING(); 1952 RETURN_NULL(); 1953 } 1954 1941 1955 xce.ttl = XG(var_ttl); 1942 1956 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz|l", &name, &value, &xce.ttl) == FAILURE) { … … 1969 1983 xc_entry_data_var_t var; 1970 1984 zval *name; 1985 1986 if (!xc_var_caches) { 1987 VAR_DISABLED_WARNING(); 1988 RETURN_FALSE; 1989 } 1971 1990 1972 1991 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { … … 2001 2020 zval *name; 2002 2021 2022 if (!xc_var_caches) { 2023 VAR_DISABLED_WARNING(); 2024 RETURN_FALSE; 2025 } 2026 2003 2027 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { 2004 2028 return; … … 2027 2051 long value = 0; 2028 2052 zval oldzval; 2053 2054 if (!xc_var_caches) { 2055 VAR_DISABLED_WARNING(); 2056 RETURN_NULL(); 2057 } 2029 2058 2030 2059 xce.ttl = XG(var_ttl);
Note: See TracChangeset
for help on using the changeset viewer.

