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

/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_closures.c392 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) {
393 HashTable *static_variables = closure->func.op_array.static_variables; local
394 ZVAL_ARR(&val, zend_array_dup(static_variables));
445 closure->func.op_array.static_variables : NULL;
529 if (closure->func.op_array.static_variables) {
530 HashTable *static_variables = closure->func.op_array.static_variables; local
532 ALLOC_HASHTABLE(closure->func.op_array.static_variables);
533 zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_element
[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)++;
1157 if (fn->type == ZEND_USER_FUNCTION && fn->op_array.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 */
3383 if (!CG(active_op_array)->static_variables) {
3387 ALLOC_HASHTABLE(CG(active_op_array)->static_variables);
3388 zend_hash_init(CG(active_op_array)->static_variables, 8, NULL, ZVAL_PTR_DTOR, 0);
3391 if (GC_REFCOUNT(CG(active_op_array)->static_variables) > 1) {
3392 if (!(GC_FLAGS(CG(active_op_array)->static_variables) & IS_ARRAY_IMMUTABLE)) {
3393 GC_REFCOUNT(CG(active_op_array)->static_variables)
[all...]
H A Dzend_compile.h361 HashTable *static_variables; member in struct:_zend_op_array
H A Dzend_execute.c1479 ZEND_ASSERT(EX(func)->op_array.static_variables != NULL);
1480 ht = EX(func)->op_array.static_variables;
1485 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);
344 if (op_array->static_variables &&
345 !(GC_FLAGS(op_array->static_variables) & IS_ARRAY_IMMUTABLE)) {
346 if (--GC_REFCOUNT(op_array->static_variables) == 0) {
347 zend_array_destroy(op_array->static_variables);
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;
/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_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.c2177 if (func->op_array.static_variables) {
2178 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2179 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2180 accel_fast_hash_destroy(func->op_array.static_variables);
2199 if (func->op_array.static_variables) {
2200 if (!(GC_FLAGS(func->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
2201 if (--GC_REFCOUNT(func->op_array.static_variables) == 0) {
2202 accel_fast_hash_destroy(func->op_array.static_variables);
2205 func->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;
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;
/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;

Completed in 51 milliseconds