Searched refs:static_variables (Results 1 - 14 of 14) 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 Dzend_accelerator_util_funcs.c50 if (function->op_array.static_variables) {
51 if (!(GC_FLAGS(function->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
52 if (--GC_REFCOUNT(function->op_array.static_variables) == 0) {
53 FREE_HASHTABLE(function->op_array.static_variables);
56 function->op_array.static_variables = NULL;
H A Dzend_file_cache.c347 if (op_array->static_variables && !IS_SERIALIZED(op_array->static_variables)) {
350 SERIALIZE_PTR(op_array->static_variables);
351 ht = op_array->static_variables;
878 if (op_array->static_variables && !IS_UNSERIALIZED(op_array->static_variables)) {
881 UNSERIALIZE_PTR(op_array->static_variables);
882 ht = op_array->static_variables;
H A Dzend_persist.c441 if (op_array->static_variables) {
442 HashTable *stored = zend_shared_alloc_get_xlat_entry(op_array->static_variables);
445 op_array->static_variables = stored;
447 zend_hash_persist(op_array->static_variables, zend_persist_zval_static);
448 zend_accel_store(op_array->static_variables, sizeof(HashTable));
450 GC_REFCOUNT(op_array->static_variables) = 2;
451 GC_TYPE_INFO(op_array->static_variables) = IS_ARRAY | (IS_ARRAY_IMMUTABLE << 8);
452 op_array->static_variables->u.flags |= HASH_FLAG_STATIC_KEYS;
453 op_array->static_variables->u.flags &= ~HASH_FLAG_APPLY_PROTECTION;
H A DZendAccelerator.c2186 if (func->op_array.static_variables) {
2187 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2188 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2189 accel_fast_hash_destroy(func->op_array.static_variables);
2208 if (func->op_array.static_variables) {
2209 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2210 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2211 accel_fast_hash_destroy(func->op_array.static_variables);
2214 func->op_array.static_variables = NULL;
/PHP_TRUNK/Zend/
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) {
H A Dzend_closures.c361 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) {
362 HashTable *static_variables = closure->func.op_array.static_variables; local
363 ZVAL_ARR(&val, zend_array_dup(static_variables));
414 closure->func.op_array.static_variables : NULL;
498 if (closure->func.op_array.static_variables) {
499 HashTable *static_variables = closure->func.op_array.static_variables; local
501 ALLOC_HASHTABLE(closure->func.op_array.static_variables);
502 zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_element
[all...]
H A Dzend_builtin_functions.c1956 HashTable *static_variables; local
1966 static_variables = func->static_variables;
1967 func->static_variables = NULL;
1969 func->static_variables = static_variables;
H A Dzend_compile.h356 HashTable *static_variables; member in struct:_zend_op_array
H A Dzend_execute.c1272 ZEND_ASSERT(EX(func)->op_array.static_variables != NULL);
1273 ht = EX(func)->op_array.static_variables;
1278 EX(func)->op_array.static_variables = ht = zend_array_dup(ht);
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_compile.c986 if (op_array->static_variables) {
987 if (!(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
988 GC_REFCOUNT(op_array->static_variables)++;
1035 function->op_array.static_variables = NULL; /* NULL out the unbound function */
3417 if (!CG(active_op_array)->static_variables) {
3421 ALLOC_HASHTABLE(CG(active_op_array)->static_variables);
3422 zend_hash_init(CG(active_op_array)->static_variables, 8, NULL, ZVAL_PTR_DTOR, 0);
3425 if (GC_REFCOUNT(CG(active_op_array)->static_variables) > 1) {
3426 if (!(GC_FLAGS(CG(active_op_array)->static_variables) & IS_ARRAY_IMMUTABLE)) {
3427 GC_REFCOUNT(CG(active_op_array)->static_variables)
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c630 HashTable *ht = op_array->static_variables;
632 op_array->static_variables = ht;
661 HashTable *ht = op_array->static_variables;
663 op_array->static_variables = ht;
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c752 HashTable *static_variables; local
754 if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) {
758 static_variables = fptr->op_array.static_variables;
759 count = zend_hash_num_elements(static_variables);
766 string_printf(str, "%s- Bound Variables [%d] {\n", indent, zend_hash_num_elements(static_variables));
768 ZEND_HASH_FOREACH_STR_KEY(static_variables, key) {
1860 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.static_variables != NULL) {
1861 if (GC_REFCOUNT(fptr->op_array.static_variables) > 1) {
1862 if (!(GC_FLAGS(fptr->op_array.static_variables)
[all...]

Completed in 51 milliseconds