Changeset 860 in svn for trunk/xcache.c


Ignore:
Timestamp:
2012-03-29T04:54:33+02:00 (3 years ago)
Author:
Xuefer
Message:

kill warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r859 r860  
    11341134}
    11351135/* }}} */
    1136 static void xc_entry_init_key_php_entry(xc_entry_php_t *entry_php, ZEND_24(const) char *filepath TSRMLS_DC) /* {{{*/
    1137 {
    1138     entry_php->filepath     = filepath;
     1136static void xc_entry_init_key_php_entry(xc_entry_php_t *entry_php, const char *filepath TSRMLS_DC) /* {{{*/
     1137{
     1138    entry_php->filepath     = ZEND_24((char *), NOTHING) filepath;
    11391139    entry_php->filepath_len = strlen(entry_php->filepath);
    11401140    entry_php->dirpath      = estrndup(entry_php->filepath, entry_php->filepath_len);
     
    16961696
    16971697    xc_undo_pass_two(compiler->new_php.op_array TSRMLS_CC);
    1698     xc_foreach_early_binding_class(compiler->new_php.op_array, xc_cache_early_binding_class_cb, (void *) compiler->new_php.SRMLS_CC);
     1698    xc_foreach_early_binding_class(compiler->new_php.op_array, xc_cache_early_binding_class_cb, (void *) &compiler->new_php TSRMLS_CC);
    16991699    xc_redo_pass_two(compiler->new_php.op_array TSRMLS_CC);
    17001700    /* }}} */
     
    31453145PHP_FUNCTION(xcache_is_autoglobal)
    31463146{
    3147     char *name;
    3148     int name_len;
    3149 
    3150     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) {
     3147    zval *name;
     3148
     3149    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name) == FAILURE) {
    31513150        return;
    31523151    }
    31533152
    3154     RETURN_BOOL(zend_hash_exists(CG(auto_globals), name, name_len + 1));
     3153    RETURN_BOOL(zend_u_hash_exists(CG(auto_globals), UG(unicode), Z_STRVAL_P(name), Z_STRLEN_P(name) + 1));
    31553154}
    31563155/* }}} */
Note: See TracChangeset for help on using the changeset viewer.