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

/PHP_TRUNK/Zend/
H A Dzend_closures.c353 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) {
354 HashTable *static_variables = closure->func.op_array.static_variables; local
355 ZVAL_ARR(&val, zend_array_dup(static_variables));
413 closure->func.op_array.static_variables : NULL;
497 if (closure->func.op_array.static_variables) {
498 HashTable *static_variables = closure->func.op_array.static_variables; local
500 ALLOC_HASHTABLE(closure->func.op_array.static_variables);
501 zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_element
[all...]
H A Dzend_generators.c246 if (op_array->static_variables) {
247 ALLOC_HASHTABLE(op_array_copy->static_variables);
249 op_array_copy->static_variables,
250 zend_hash_num_elements(op_array->static_variables),
254 op_array->static_variables,
256 op_array_copy->static_variables
H A Dzend_compile.h341 HashTable *static_variables; member in struct:_zend_op_array
H A Dzend_execute.c1270 ZEND_ASSERT(EX(func)->op_array.static_variables != NULL);
1271 ht = EX(func)->op_array.static_variables;
1276 EX(func)->op_array.static_variables = ht = zend_array_dup(ht);
H A Dzend_inheritance.c76 if (EXPECTED(!func->op_array.static_variables)) {
80 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
81 GC_REFCOUNT(func->op_array.static_variables)++;
1132 if (fn->op_array.static_variables) {
H A Dzend_opcode.c81 op_array->static_variables = NULL;
132 if (op_array->static_variables &&
133 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
134 zend_hash_clean(op_array->static_variables);
334 if (op_array->static_variables &&
335 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
336 if (--GC_REFCOUNT(op_array->static_variables) == 0) {
337 zend_array_destroy(op_array->static_variables);
H A Dzend_compile.c925 if (op_array->static_variables) {
926 if (!(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
927 GC_REFCOUNT(op_array->static_variables)++;
974 function->op_array.static_variables = NULL; /* NULL out the unbound function */
3289 if (!CG(active_op_array)->static_variables) {
3293 ALLOC_HASHTABLE(CG(active_op_array)->static_variables);
3294 zend_hash_init(CG(active_op_array)->static_variables, 8, NULL, ZVAL_PTR_DTOR, 0);
3297 if (GC_REFCOUNT(CG(active_op_array)->static_variables) > 1) {
3298 if (!(GC_FLAGS(CG(active_op_array)->static_variables) & IS_ARRAY_IMMUTABLE)) {
3299 GC_REFCOUNT(CG(active_op_array)->static_variables)
[all...]
H A Dzend_builtin_functions.c1948 HashTable *static_variables; local
1958 static_variables = func->static_variables;
1959 func->static_variables = NULL;
1961 func->static_variables = static_variables;
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c371 if (op_array->static_variables) {
372 HashTable *stored = zend_shared_alloc_get_xlat_entry(op_array->static_variables);
375 op_array->static_variables = stored;
377 zend_hash_persist(op_array->static_variables, zend_persist_zval_static);
378 zend_accel_store(op_array->static_variables, sizeof(HashTable));
380 GC_REFCOUNT(op_array->static_variables) = 2;
381 GC_TYPE_INFO(op_array->static_variables) = IS_ARRAY | (IS_ARRAY_IMMUTABLE << 8);
382 op_array->static_variables->u.flags &= ~HASH_FLAG_APPLY_PROTECTION;
H A Dzend_persist_calc.c149 if (op_array->static_variables) {
150 if (!zend_shared_alloc_get_xlat_entry(op_array->static_variables)) {
151 HashTable *old = op_array->static_variables;
153 ADD_DUP_SIZE(op_array->static_variables, sizeof(HashTable));
154 zend_hash_persist_calc(op_array->static_variables, zend_persist_zval_calc);
155 zend_shared_alloc_register_xlat_entry(old, op_array->static_variables);
H A DZendAccelerator.c1987 if (func->op_array.static_variables) {
1988 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
1989 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
1990 accel_fast_hash_destroy(func->op_array.static_variables);
2009 if (func->op_array.static_variables) {
2010 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2011 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2012 accel_fast_hash_destroy(func->op_array.static_variables);
2015 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;
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c748 HashTable *static_variables; local
750 if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) {
754 static_variables = fptr->op_array.static_variables;
755 count = zend_hash_num_elements(static_variables);
762 string_printf(str, "%s- Bound Variables [%d] {\n", indent, zend_hash_num_elements(static_variables));
764 ZEND_HASH_FOREACH_STR_KEY(static_variables, key) {
1855 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.static_variables != NULL) {
1856 if (GC_REFCOUNT(fptr->op_array.static_variables) > 1) {
1857 if (!(GC_FLAGS(fptr->op_array.static_variables)
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c621 HashTable *ht = op_array->static_variables;
623 op_array->static_variables = ht;
652 HashTable *ht = op_array->static_variables;
654 op_array->static_variables = ht;

Completed in 52 milliseconds