Changeset 189 in svn for trunk/xcache.c


Ignore:
Timestamp:
2006-09-20T02:24:42+02:00 (9 years ago)
Author:
Xuefer
Message:

call op_array_ctor handler on restore to be more compatible with other zend_extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r165 r189  
    9696static zend_bool xc_test = 0;
    9797static zend_bool xc_readonly_protection = 0;
     98
     99zend_bool xc_have_op_array_ctor = 0;
    98100
    99101static zend_bool xc_module_gotup = 0;
     
    22812283{
    22822284    char *env;
     2285    zend_extension *ext;
     2286    zend_llist_position lpos;
    22832287
    22842288    xc_module_gotup = 1;
     
    22892293        }
    22902294    }
     2295
     2296    /* cache if there's an op_array_ctor */
     2297    for (ext = zend_llist_get_first_ex(&zend_extensions, &lpos);
     2298            ext;
     2299            ext = zend_llist_get_next_ex(&zend_extensions, &lpos)) {
     2300        if (ext->op_array_ctor) {
     2301            xc_have_op_array_ctor = 1;
     2302            break;
     2303        }
     2304    }
     2305
    22912306
    22922307#ifndef PHP_GINIT
Note: See TracChangeset for help on using the changeset viewer.