Searched refs:static_variables (Results 1 - 13 of 13) sorted by relevance

/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c159 if (op_array->static_variables) {
160 if (!zend_shared_alloc_get_xlat_entry(op_array->static_variables)) {
161 HashTable *old = op_array->static_variables;
163 ADD_DUP_SIZE(op_array->static_variables, sizeof(HashTable));
164 zend_hash_persist_calc(op_array->static_variables, zend_persist_zval_calc);
165 zend_shared_alloc_register_xlat_entry(old, op_array->static_variables);
H A DZendAccelerator.c2021 if (func->op_array.static_variables) {
2022 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2023 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2024 accel_fast_hash_destroy(func->op_array.static_variables);
2043 if (func->op_array.static_variables) {
2044 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2045 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2046 accel_fast_hash_destroy(func->op_array.static_variables);
2049 func->op_array.static_variables = NULL;
H A Dzend_accelerator_util_funcs.c51 if (function->op_array.static_variables) {
52 if (!(GC_FLAGS(function->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
53 if (--GC_REFCOUNT(function->op_array.static_variables) == 0) {
54 FREE_HASHTABLE(function->op_array.static_variables);
57 function->op_array.static_variables = NULL;
H A Dzend_persist.c440 if (op_array->static_variables) {
441 HashTable *stored = zend_shared_alloc_get_xlat_entry(op_array->static_variables);
444 op_array->static_variables = stored;
446 zend_hash_persist(op_array->static_variables, zend_persist_zval_static);
447 zend_accel_store(op_array->static_variables, sizeof(HashTable));
449 GC_REFCOUNT(op_array->static_variables) = 2;
450 GC_TYPE_INFO(op_array->static_variables) = IS_ARRAY | (IS_ARRAY_IMMUTABLE << 8);
451 op_array->static_variables->u.flags |= HASH_FLAG_STATIC_KEYS;
452 op_array->static_variables->u.flags &= ~HASH_FLAG_APPLY_PROTECTION;
/PHP_TRUNK/Zend/
H A Dzend_builtin_functions.c1954 HashTable *static_variables; local
1964 static_variables = func->static_variables;
1965 func->static_variables = NULL;
1967 func->static_variables = static_variables;
H A Dzend_closures.c342 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) {
343 HashTable *static_variables = closure->func.op_array.static_variables; local
344 ZVAL_ARR(&val, zend_array_dup(static_variables));
395 closure->func.op_array.static_variables : NULL;
479 if (closure->func.op_array.static_variables) {
480 HashTable *static_variables = closure->func.op_array.static_variables; local
482 ALLOC_HASHTABLE(closure->func.op_array.static_variables);
483 zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_element
[all...]
H A Dzend_compile.h366 HashTable *static_variables; member in struct:_zend_op_array
H A Dzend_opcode.c84 op_array->static_variables = NULL;
135 if (op_array->static_variables &&
136 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
137 zend_hash_clean(op_array->static_variables);
343 if (op_array->static_variables &&
344 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
345 if (--GC_REFCOUNT(op_array->static_variables) == 0) {
346 zend_array_destroy(op_array->static_variables);
H A Dzend_execute.c1281 ZEND_ASSERT(EX(func)->op_array.static_variables != NULL);
1282 ht = EX(func)->op_array.static_variables;
1287 EX(func)->op_array.static_variables = ht = zend_array_dup(ht);
H A Dzend_compile.c987 if (op_array->static_variables) {
988 if (!(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
989 GC_REFCOUNT(op_array->static_variables)++;
1036 function->op_array.static_variables = NULL; /* NULL out the unbound function */
3340 if (!CG(active_op_array)->static_variables) {
3344 ALLOC_HASHTABLE(CG(active_op_array)->static_variables);
3345 zend_hash_init(CG(active_op_array)->static_variables, 8, NULL, ZVAL_PTR_DTOR, 0);
3348 if (GC_REFCOUNT(CG(active_op_array)->static_variables) > 1) {
3349 if (!(GC_FLAGS(CG(active_op_array)->static_variables) & IS_ARRAY_IMMUTABLE)) {
3350 GC_REFCOUNT(CG(active_op_array)->static_variables)
[all...]
H A Dzend_inheritance.c77 if (EXPECTED(!func->op_array.static_variables)) {
81 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
82 GC_REFCOUNT(func->op_array.static_variables)++;
1138 if (fn->type == ZEND_USER_FUNCTION && fn->op_array.static_variables) {
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c626 HashTable *ht = op_array->static_variables;
628 op_array->static_variables = ht;
657 HashTable *ht = op_array->static_variables;
659 op_array->static_variables = ht;
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c746 HashTable *static_variables; local
748 if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) {
752 static_variables = fptr->op_array.static_variables;
753 count = zend_hash_num_elements(static_variables);
760 string_printf(str, "%s- Bound Variables [%d] {\n", indent, zend_hash_num_elements(static_variables));
762 ZEND_HASH_FOREACH_STR_KEY(static_variables, key) {
1854 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.static_variables != NULL) {
1855 if (GC_REFCOUNT(fptr->op_array.static_variables) > 1) {
1856 if (!(GC_FLAGS(fptr->op_array.static_variables)
[all...]

Completed in 42 milliseconds