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

/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c747 HashTable *static_variables; local
749 if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) {
753 static_variables = fptr->op_array.static_variables;
754 count = zend_hash_num_elements(static_variables);
761 string_printf(str, "%s- Bound Variables [%d] {\n", indent, zend_hash_num_elements(static_variables));
763 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...]
/PHP_TRUNK/Zend/
H A Dzend_generators.c243 if (op_array->static_variables) {
244 ALLOC_HASHTABLE(op_array_copy->static_variables);
246 op_array_copy->static_variables,
247 zend_hash_num_elements(op_array->static_variables),
251 op_array->static_variables,
253 op_array_copy->static_variables
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_builtin_functions.c1932 HashTable *static_variables; local
1942 static_variables = func->static_variables;
1943 func->static_variables = NULL;
1945 func->static_variables = static_variables;
H A Dzend_compile.h344 HashTable *static_variables; member in struct:_zend_op_array
H A Dzend_execute.c1164 ZEND_ASSERT(EX(func)->op_array.static_variables != NULL);
1165 ht = EX(func)->op_array.static_variables;
1170 EX(func)->op_array.static_variables = ht = zend_array_dup(ht);
H A Dzend_compile.c859 if (op_array->static_variables) {
860 if (!(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
861 GC_REFCOUNT(op_array->static_variables)++;
908 function->op_array.static_variables = NULL; /* NULL out the unbound function */
3213 if (!CG(active_op_array)->static_variables) {
3217 ALLOC_HASHTABLE(CG(active_op_array)->static_variables);
3218 zend_hash_init(CG(active_op_array)->static_variables, 8, NULL, ZVAL_PTR_DTOR, 0);
3221 if (GC_REFCOUNT(CG(active_op_array)->static_variables) > 1) {
3222 if (!(GC_FLAGS(CG(active_op_array)->static_variables) & IS_ARRAY_IMMUTABLE)) {
3223 GC_REFCOUNT(CG(active_op_array)->static_variables)
[all...]
H A Dzend_opcode.c81 op_array->static_variables = NULL;
133 if (op_array->static_variables &&
134 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
135 zend_hash_clean(op_array->static_variables);
330 if (op_array->static_variables &&
331 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
332 if (--GC_REFCOUNT(op_array->static_variables) == 0) {
333 zend_array_destroy(op_array->static_variables);
H A Dzend_inheritance.c1184 if (fn->op_array.static_variables) {
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c602 HashTable *ht = op_array->static_variables;
604 op_array->static_variables = ht;
633 HashTable *ht = op_array->static_variables;
635 op_array->static_variables = ht;
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c1989 if (function->op_array.static_variables) {
1990 if (!(GC_FLAGS(function->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
1991 if (--GC_REFCOUNT(function->op_array.static_variables) == 0) {
1992 accel_fast_hash_destroy(function->op_array.static_variables);
1995 function->op_array.static_variables = NULL;
2045 if (func->op_array.static_variables) {
2046 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2047 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2048 accel_fast_hash_destroy(func->op_array.static_variables);
2067 if (func->op_array.static_variables) {
[all...]
H A Dzend_accelerator_util_funcs.c53 if (function->op_array.static_variables) {
54 if (!(GC_FLAGS(function->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
55 if (--GC_REFCOUNT(function->op_array.static_variables) == 0) {
56 FREE_HASHTABLE(function->op_array.static_variables);
59 function->op_array.static_variables = NULL;
H A Dzend_persist.c374 if (op_array->static_variables) {
375 HashTable *stored = zend_shared_alloc_get_xlat_entry(op_array->static_variables);
378 op_array->static_variables = stored;
380 zend_hash_persist(op_array->static_variables, zend_persist_zval_static);
381 zend_accel_store(op_array->static_variables, sizeof(HashTable));
383 GC_REFCOUNT(op_array->static_variables) = 2;
384 GC_TYPE_INFO(op_array->static_variables) = IS_ARRAY | (IS_ARRAY_IMMUTABLE << 8);
385 op_array->static_variables->u.flags &= ~HASH_FLAG_APPLY_PROTECTION;
H A Dzend_persist_calc.c152 if (op_array->static_variables) {
153 if (!zend_shared_alloc_get_xlat_entry(op_array->static_variables)) {
154 HashTable *old = op_array->static_variables;
156 ADD_DUP_SIZE(op_array->static_variables, sizeof(HashTable));
157 zend_hash_persist_calc(op_array->static_variables, zend_persist_zval_calc);
158 zend_shared_alloc_register_xlat_entry(old, op_array->static_variables);

Completed in 105 milliseconds