Changeset 637
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r635 r637 597 597 #endif 598 598 599 static void xc_copy_zend_constant(zend_constant *c) /* {{{ */ 600 { 599 void xc_copy_zend_constant(zend_constant *c) /* {{{ */ 600 { 601 #ifdef IS_UNICODE 602 c->name.u = zend_ustrndup(c->name.u, c->name_len - 1); 603 #else 601 604 c->name = zend_strndup(c->name, c->name_len - 1); 605 #endif 602 606 if (!(c->flags & CONST_PERSISTENT)) { 603 607 zval_copy_ctor(&c->value); -
trunk/utils.h
r588 r637 123 123 xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC); 124 124 void xc_sandbox_free(xc_sandbox_t *sandbox, xc_install_action_t install TSRMLS_DC); 125 void xc_copy_zend_constant(zend_constant *c); -
trunk/xcache.c
r631 r637 1849 1849 } 1850 1850 /* }}} */ 1851 static void xc_copy_zend_constant(zend_constant *c) /* {{{ */1852 {1853 c->name = zend_strndup(c->name, c->name_len - 1);1854 if (!(c->flags & CONST_PERSISTENT)) {1855 zval_copy_ctor(&c->value);1856 }1857 }1858 /* }}} */1859 1851 static void xc_request_init(TSRMLS_D) /* {{{ */ 1860 1852 { … … 2217 2209 default: 2218 2210 #ifdef IS_UNICODE 2219 convert_to_ text(name);2211 convert_to_unicode(name); 2220 2212 #else 2221 2213 convert_to_string(name);
Note: See TracChangeset
for help on using the changeset viewer.

