Lines Matching refs:p
143 const char *p; in is_stream_path() local
145 for (p = filename; in is_stream_path()
146 (*p >= 'a' && *p <= 'z') || in is_stream_path()
147 (*p >= 'A' && *p <= 'Z') || in is_stream_path()
148 (*p >= '0' && *p <= '9') || in is_stream_path()
149 *p == '+' || *p == '-' || *p == '.'; in is_stream_path()
150 p++); in is_stream_path()
151 return ((p != filename) && (p[0] == ':') && (p[1] == '/') && (p[2] == '/')); in is_stream_path()
370 Bucket *p; in accel_interned_strings_restore_state() local
377 p = ZCSG(interned_strings).arData + idx; in accel_interned_strings_restore_state()
378 if ((char*)p->key < ZCSG(interned_strings_top)) break; in accel_interned_strings_restore_state()
382 nIndex = p->h | ZCSG(interned_strings).nTableMask; in accel_interned_strings_restore_state()
384 HT_HASH(&ZCSG(interned_strings), nIndex) = Z_NEXT(p->val); in accel_interned_strings_restore_state()
390 Z_NEXT(HT_HASH_TO_BUCKET(&ZCSG(interned_strings), prev)->val) = Z_NEXT(p->val); in accel_interned_strings_restore_state()
408 Bucket *arData, *p; in accel_find_interned_string() local
428 p = HT_HASH_TO_BUCKET_EX(arData, idx); in accel_find_interned_string()
429 if ((p->h == h) && (ZSTR_LEN(p->key) == ZSTR_LEN(str))) { in accel_find_interned_string()
430 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in accel_find_interned_string()
431 return p->key; in accel_find_interned_string()
434 idx = Z_NEXT(p->val); in accel_find_interned_string()
448 Bucket *p; in accel_new_interned_string() local
467 p = HT_HASH_TO_BUCKET(&ZCSG(interned_strings), idx); in accel_new_interned_string()
468 if ((p->h == h) && (ZSTR_LEN(p->key) == ZSTR_LEN(str))) { in accel_new_interned_string()
469 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in accel_new_interned_string()
471 return p->key; in accel_new_interned_string()
474 idx = Z_NEXT(p->val); in accel_new_interned_string()
488 p = ZCSG(interned_strings).arData + idx; in accel_new_interned_string()
489 p->key = (zend_string*) ZCSG(interned_strings_top); in accel_new_interned_string()
491 p->h = h; in accel_new_interned_string()
492 GC_REFCOUNT(p->key) = 1; in accel_new_interned_string()
495 GC_TYPE_INFO(p->key) = IS_STRING | ((IS_STR_INTERNED | IS_STR_PERMANENT) << 8); in accel_new_interned_string()
497 GC_TYPE(p->key) = IS_STRING; in accel_new_interned_string()
498 GC_FLAGS(p->key) = IS_STR_INTERNED | IS_STR_PERMANENT; in accel_new_interned_string()
500 ZSTR_H(p->key) = ZSTR_H(str); in accel_new_interned_string()
501 ZSTR_LEN(p->key) = ZSTR_LEN(str); in accel_new_interned_string()
502 memcpy(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str)); in accel_new_interned_string()
503 ZVAL_INTERNED_STR(&p->val, p->key); in accel_new_interned_string()
504 Z_NEXT(p->val) = HT_HASH(&ZCSG(interned_strings), nIndex); in accel_new_interned_string()
507 return p->key; in accel_new_interned_string()
518 Bucket *p, *q; in accel_use_shm_interned_strings() local
531 p = CG(function_table)->arData + idx; in accel_use_shm_interned_strings()
532 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
533 if (p->key) { in accel_use_shm_interned_strings()
534 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
536 if (Z_FUNC(p->val)->common.function_name) { in accel_use_shm_interned_strings()
537 …Z_FUNC(p->val)->common.function_name = accel_new_interned_string(Z_FUNC(p->val)->common.function_n… in accel_use_shm_interned_strings()
545 p = CG(class_table)->arData + idx; in accel_use_shm_interned_strings()
546 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
547 ce = (zend_class_entry*)Z_PTR(p->val); in accel_use_shm_interned_strings()
549 if (p->key) { in accel_use_shm_interned_strings()
550 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
596 p = EG(zend_constants)->arData + idx; in accel_use_shm_interned_strings()
597 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
598 if (p->key) { in accel_use_shm_interned_strings()
599 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
607 p = CG(auto_globals)->arData + idx; in accel_use_shm_interned_strings()
608 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
610 auto_global = (zend_auto_global*)Z_PTR(p->val);; in accel_use_shm_interned_strings()
614 if (p->key) { in accel_use_shm_interned_strings()
615 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
2056 Bucket *p; in accel_reset_pcre_cache() local
2058 ZEND_HASH_FOREACH_BUCKET(&PCRE_G(pcre_cache), p) { in accel_reset_pcre_cache()
2060 if (zend_accel_in_shm(p->key)) { in accel_reset_pcre_cache()
2061 p->key = NULL; in accel_reset_pcre_cache()
2062 zend_hash_del_bucket(&PCRE_G(pcre_cache), p); in accel_reset_pcre_cache()
2240 Bucket *p = ht->arData; in accel_fast_hash_destroy() local
2241 Bucket *end = p + ht->nNumUsed; in accel_fast_hash_destroy()
2243 while (p != end) { in accel_fast_hash_destroy()
2244 if (Z_REFCOUNTED(p->val) && Z_DELREF(p->val) == 0) { in accel_fast_hash_destroy()
2245 accel_fast_zval_dtor(&p->val); in accel_fast_hash_destroy()
2247 p++; in accel_fast_hash_destroy()
2251 static inline void zend_accel_fast_del_bucket(HashTable *ht, uint32_t idx, Bucket *p) in zend_accel_fast_del_bucket() argument
2253 uint32_t nIndex = p->h | ht->nTableMask; in zend_accel_fast_del_bucket()
2263 Z_NEXT(prev->val) = Z_NEXT(p->val); in zend_accel_fast_del_bucket()
2265 HT_HASH(ht, p->h | ht->nTableMask) = Z_NEXT(p->val); in zend_accel_fast_del_bucket()