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

/PHP_TRUNK/ext/opcache/
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;
902 if (op_array->static_variables && !IS_UNSERIALIZED(op_array->static_variables)) {
905 UNSERIALIZE_PTR(op_array->static_variables);
906 ht = 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_persist.c465 if (op_array->static_variables) {
466 HashTable *stored = zend_shared_alloc_get_xlat_entry(op_array->static_variables);
469 op_array->static_variables = stored;
471 zend_hash_persist(op_array->static_variables, zend_persist_zval_static);
472 zend_accel_store(op_array->static_variables, sizeof(HashTable));
474 GC_REFCOUNT(op_array->static_variables) = 2;
475 GC_TYPE_INFO(op_array->static_variables) = IS_ARRAY | (IS_ARRAY_IMMUTABLE << 8);
476 op_array->static_variables->u.flags |= HASH_FLAG_STATIC_KEYS;
477 op_array->static_variables->u.flags &= ~HASH_FLAG_APPLY_PROTECTION;
H A Dzend_persist_calc.c162 if (op_array->static_variables) {
163 if (!zend_shared_alloc_get_xlat_entry(op_array->static_variables)) {
164 HashTable *old = op_array->static_variables;
166 ADD_DUP_SIZE(op_array->static_variables, sizeof(HashTable));
167 zend_hash_persist_calc(op_array->static_variables, zend_persist_zval_calc);
168 zend_shared_alloc_register_xlat_entry(old, op_array->static_variables);
H A DZendAccelerator.c2180 if (func->op_array.static_variables) {
2181 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2182 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2183 accel_fast_hash_destroy(func->op_array.static_variables);
2202 if (func->op_array.static_variables) {
2203 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2204 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2205 accel_fast_hash_destroy(func->op_array.static_variables);
2208 func->op_array.static_variables = NULL;
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c640 HashTable *ht = op_array->static_variables;
642 op_array->static_variables = ht;
671 HashTable *ht = op_array->static_variables;
673 op_array->static_variables = ht;
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c768 HashTable *static_variables; local
770 if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) {
774 static_variables = fptr->op_array.static_variables;
775 count = zend_hash_num_elements(static_variables);
782 string_printf(str, "%s- Bound Variables [%d] {\n", indent, zend_hash_num_elements(static_variables));
784 ZEND_HASH_FOREACH_STR_KEY(static_variables, key) {
1899 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.static_variables != NULL) {
1900 if (GC_REFCOUNT(fptr->op_array.static_variables) > 1) {
1901 if (!(GC_FLAGS(fptr->op_array.static_variables)
[all...]
/PHP_TRUNK/Zend/
H A Dzend_builtin_functions.c1975 HashTable *static_variables; local
1985 static_variables = func->static_variables;
1986 func->static_variables = NULL;
1988 func->static_variables = static_variables;
H A Dzend_compile.c922 if (op_array->static_variables) {
923 if (!(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
924 GC_REFCOUNT(op_array->static_variables)++;
971 function->op_array.static_variables = NULL; /* NULL out the unbound function */
3434 if (!CG(active_op_array)->static_variables) {
3438 ALLOC_HASHTABLE(CG(active_op_array)->static_variables);
3439 zend_hash_init(CG(active_op_array)->static_variables, 8, NULL, ZVAL_PTR_DTOR, 0);
3442 if (GC_REFCOUNT(CG(active_op_array)->static_variables) > 1) {
3443 if (!(GC_FLAGS(CG(active_op_array)->static_variables) & IS_ARRAY_IMMUTABLE)) {
3444 GC_REFCOUNT(CG(active_op_array)->static_variables)
[all...]
H A Dzend_compile.h363 HashTable *static_variables; member in struct:_zend_op_array
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)++;
1159 if (fn->type == ZEND_USER_FUNCTION && fn->op_array.static_variables) {
H A Dzend_execute.c1480 ZEND_ASSERT(EX(func)->op_array.static_variables != NULL);
1481 ht = EX(func)->op_array.static_variables;
1486 EX(func)->op_array.static_variables = ht = zend_array_dup(ht);
H A Dzend_opcode.c85 op_array->static_variables = NULL;
136 if (op_array->static_variables &&
137 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
138 zend_hash_clean(op_array->static_variables);
345 if (op_array->static_variables &&
346 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
347 if (--GC_REFCOUNT(op_array->static_variables) == 0) {
348 zend_array_destroy(op_array->static_variables);
H A Dzend_closures.c402 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) {
403 HashTable *static_variables = closure->func.op_array.static_variables; local
404 ZVAL_ARR(&val, zend_array_dup(static_variables));
455 closure->func.op_array.static_variables : NULL;
539 if (closure->func.op_array.static_variables) {
540 HashTable *static_variables = closure->func.op_array.static_variables; local
542 ALLOC_HASHTABLE(closure->func.op_array.static_variables);
543 zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_element
[all...]

Completed in 43 milliseconds