Changeset 504 for trunk/processor

Show
Ignore:
Timestamp:
01/05/2008 03:42:14 AM (12 months ago)
Author:
moo
Message:

PHP_6: updated support

Location:
trunk/processor
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/processor/hashtable.m4

    r393 r504  
    6060                    } 
    6161                } 
    62                 add_u_assoc_zval_ex(dst, BUCKET_KEY_TYPE(b), buf, keysize, zv); 
     62                add_u_assoc_zval_ex(dst, BUCKET_KEY_TYPE(b), ZSTR(buf), keysize, zv); 
    6363            } 
    6464            ') 
  • trunk/processor/main.m4

    r393 r504  
    111111        IFSTORE(`$1 = (zend_class_entry *) xc_get_class_num(processor, $2);') 
    112112        IFRESTORE(`$1 = xc_get_class(processor, (zend_ulong) $2);') 
    113         IFDASM(`add_assoc_stringl_ex(dst, ZEND_STRS("$3"), $2->name, strlen($2->name), 1);') 
     113        IFDASM(`add_assoc_unicodel_ex(dst, ZEND_STRS("$3"), ZSTR_U($2->name), $2->name_length, 1);') 
    114114    } 
    115115    else { 
  • trunk/processor/processor.m4

    r503 r504  
    5757DEF_STRUCT_P_FUNC(`zend_brk_cont_element', , ` 
    5858#ifdef ZEND_ENGINE_2_2 
    59 #ifndef IS_UNICODE 
    6059    DISPATCH(int, start) 
    61 #endif 
    6260#endif 
    6361    DISPATCH(int, cont) 
     
    283281#endif 
    284282    dnl isnt in php6 yet 
    285 #if defined(ZEND_ENGINE_2_2) && !defined(IS_UNICODE) 
     283#if defined(ZEND_ENGINE_2_2) 
    286284    PROC_CLASS_ENTRY_P(ce) 
    287285#endif 
  • trunk/processor/string.m4

    r393 r504  
    3939 
    4040                INIT_ZVAL(zv); 
    41                 ZVAL_UNICODEL(&zv, (UChar *) ($2), $3 - 1, 1); 
     41                ZVAL_UNICODEL(&zv, ZSTR_U($2), $3 - 1, 1); 
    4242                zend_make_printable_zval(&zv, &reszv, &usecopy); 
    4343                fprintf(stderr, "string:%s:\t\"", "$1"); 
     
    6464        FIXPOINTER_EX(`PTRTYPE', DSTPTR) 
    6565        IFDASM(` 
    66                 ifelse(STRTYPE,zstr_uchar, ` 
    67                     add_assoc_unicodel_ex(dst, ZEND_STRS("$4"), $2, $3-1, 1); 
    68                     ', ` dnl else 
    69                     add_assoc_stringl_ex(dst, ZEND_STRS("$4"), $2, $3-1, 1);') 
     66            ifelse(STRTYPE,zstr_uchar, ` 
     67                add_assoc_unicodel_ex(dst, ZEND_STRS("$4"), ZSTR_U($2), $3-1, 1); 
     68                ', ` dnl else 
     69                ifelse(STRTYPE,zstr_char, ` 
     70                    add_assoc_stringl_ex(dst, ZEND_STRS("$4"), ZSTR_S($2), $3-1, 1); 
     71                    ', ` 
     72                    add_assoc_stringl_ex(dst, ZEND_STRS("$4"), $2, $3-1, 1); 
    7073                ') 
     74            ') 
     75        ') 
    7176    } 
    7277    popdef(`DSTPTR')