Changeset 641 for branches/1.3/xcache.c
- Timestamp:
- 2009-07-05T16:56:27+02:00 (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/xcache.c
r639 r641 1585 1585 } 1586 1586 /* }}} */ 1587 static void xc_copy_zend_constant(zend_constant *c) /* {{{ */1588 {1589 c->name = zend_strndup(c->name, c->name_len - 1);1590 if (!(c->flags & CONST_PERSISTENT)) {1591 zval_copy_ctor(&c->value);1592 }1593 }1594 /* }}} */1595 1587 static void xc_request_init(TSRMLS_D) /* {{{ */ 1596 1588 { … … 1598 1590 1599 1591 if (!XG(internal_table_copied)) { 1600 #ifdef HAVE_XCACHE_CONSTANT1601 zend_constant tmp_const;1602 #endif1603 1592 zend_function tmp_func; 1604 1593 xc_cest_t tmp_cest; … … 1611 1600 1612 1601 #ifdef HAVE_XCACHE_CONSTANT 1613 zend_hash_init_ex(&XG(internal_constant_table), 20, NULL, NULL, 1, 0);1602 zend_hash_init_ex(&XG(internal_constant_table), 20, NULL, (dtor_func_t) xc_zend_constant_dtor, 1, 0); 1614 1603 #endif 1615 1604 zend_hash_init_ex(&XG(internal_function_table), 100, NULL, NULL, 1, 0); … … 1617 1606 1618 1607 #ifdef HAVE_XCACHE_CONSTANT 1619 zend_hash_copy(&XG(internal_constant_table), EG(zend_constants), (copy_ctor_func_t) xc_copy_zend_constant, &tmp_const, sizeof(tmp_const));1608 xc_copy_internal_zend_constants(&XG(internal_constant_table), EG(zend_constants)); 1620 1609 #endif 1621 1610 zend_hash_copy(&XG(internal_function_table), CG(function_table), NULL, &tmp_func, sizeof(tmp_func)); … … 1678 1667 1679 1668 #ifdef HAVE_XCACHE_CONSTANT 1680 zend_hash_init_ex(&xcache_globals->internal_constant_table, 1, NULL, NULL, 1, 0);1669 zend_hash_init_ex(&xcache_globals->internal_constant_table, 1, NULL, (dtor_func_t) xc_zend_constant_dtor, 1, 0); 1681 1670 #endif 1682 1671 zend_hash_init_ex(&xcache_globals->internal_function_table, 1, NULL, NULL, 1, 0); … … 1958 1947 default: 1959 1948 #ifdef IS_UNICODE 1960 convert_to_ text(name);1949 convert_to_unicode(name); 1961 1950 #else 1962 1951 convert_to_string(name);
Note: See TracChangeset
for help on using the changeset viewer.

