Changeset 637 for trunk/utils.c

Show
Ignore:
Timestamp:
07/05/2009 12:05:40 PM (4 years ago)
Author:
moo
Message:

PHP_6: fix build

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r635 r637  
    597597#endif 
    598598 
    599 static void xc_copy_zend_constant(zend_constant *c) /* {{{ */ 
    600 { 
     599void 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 
    601604    c->name = zend_strndup(c->name, c->name_len - 1); 
     605#endif 
    602606    if (!(c->flags & CONST_PERSISTENT)) { 
    603607        zval_copy_ctor(&c->value);