Changeset 328 for branches/1.2/xcache.c
- Timestamp:
- 2006-12-16T12:56:30+01:00 (6 years ago)
- File:
-
- 1 edited
-
branches/1.2/xcache.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/xcache.c
r299 r328 1696 1696 /* }}} */ 1697 1697 1698 #define VAR_DISABLED_WARNING() do { \ 1699 php_error_docref(NULL TSRMLS_CC, E_WARNING, "xcache.var_size is either 0 or too small to enable var data caching"); \ 1700 } while (0) 1701 1698 1702 static int xc_entry_init_key_var(xc_entry_t *xce, zval *name TSRMLS_DC) /* {{{ */ 1699 1703 { … … 1737 1741 xc_entry_data_var_t var; 1738 1742 zval *name; 1743 1744 if (!xc_var_caches) { 1745 VAR_DISABLED_WARNING(); 1746 RETURN_NULL(); 1747 } 1739 1748 1740 1749 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { … … 1770 1779 zval *value; 1771 1780 1781 if (!xc_var_caches) { 1782 VAR_DISABLED_WARNING(); 1783 RETURN_NULL(); 1784 } 1785 1772 1786 xce.ttl = XG(var_ttl); 1773 1787 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz|l", &name, &value, &xce.ttl) == FAILURE) { … … 1800 1814 xc_entry_data_var_t var; 1801 1815 zval *name; 1816 1817 if (!xc_var_caches) { 1818 VAR_DISABLED_WARNING(); 1819 RETURN_FALSE; 1820 } 1802 1821 1803 1822 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { … … 1832 1851 zval *name; 1833 1852 1853 if (!xc_var_caches) { 1854 VAR_DISABLED_WARNING(); 1855 RETURN_FALSE; 1856 } 1857 1834 1858 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &name) == FAILURE) { 1835 1859 return; … … 1858 1882 long value = 0; 1859 1883 zval oldzval; 1884 1885 if (!xc_var_caches) { 1886 VAR_DISABLED_WARNING(); 1887 RETURN_NULL(); 1888 } 1860 1889 1861 1890 xce.ttl = XG(var_ttl);
Note: See TracChangeset
for help on using the changeset viewer.

