Lines Matching refs:p

146 	const char *p;  in is_stream_path()  local
148 for (p = filename; in is_stream_path()
149 (*p >= 'a' && *p <= 'z') || in is_stream_path()
150 (*p >= 'A' && *p <= 'Z') || in is_stream_path()
151 (*p >= '0' && *p <= '9') || in is_stream_path()
152 *p == '+' || *p == '-' || *p == '.'; in is_stream_path()
153 p++); in is_stream_path()
154 return ((p != filename) && (p[0] == ':') && (p[1] == '/') && (p[2] == '/')); in is_stream_path()
373 Bucket *p; in accel_interned_strings_restore_state() local
380 p = ZCSG(interned_strings).arData + idx; in accel_interned_strings_restore_state()
381 if ((char*)p->key < ZCSG(interned_strings_top)) break; in accel_interned_strings_restore_state()
385 nIndex = p->h | ZCSG(interned_strings).nTableMask; in accel_interned_strings_restore_state()
387 HT_HASH(&ZCSG(interned_strings), nIndex) = Z_NEXT(p->val); in accel_interned_strings_restore_state()
393 Z_NEXT(HT_HASH_TO_BUCKET(&ZCSG(interned_strings), prev)->val) = Z_NEXT(p->val); in accel_interned_strings_restore_state()
411 Bucket *arData, *p; in accel_find_interned_string() local
431 p = HT_HASH_TO_BUCKET_EX(arData, idx); in accel_find_interned_string()
432 if ((p->h == h) && (ZSTR_LEN(p->key) == ZSTR_LEN(str))) { in accel_find_interned_string()
433 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in accel_find_interned_string()
434 return p->key; in accel_find_interned_string()
437 idx = Z_NEXT(p->val); in accel_find_interned_string()
451 Bucket *p; in accel_new_interned_string() local
470 p = HT_HASH_TO_BUCKET(&ZCSG(interned_strings), idx); in accel_new_interned_string()
471 if ((p->h == h) && (ZSTR_LEN(p->key) == ZSTR_LEN(str))) { in accel_new_interned_string()
472 if (!memcmp(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str))) { in accel_new_interned_string()
474 return p->key; in accel_new_interned_string()
477 idx = Z_NEXT(p->val); in accel_new_interned_string()
491 p = ZCSG(interned_strings).arData + idx; in accel_new_interned_string()
492 p->key = (zend_string*) ZCSG(interned_strings_top); in accel_new_interned_string()
494 p->h = h; in accel_new_interned_string()
495 GC_REFCOUNT(p->key) = 1; in accel_new_interned_string()
498 GC_TYPE_INFO(p->key) = IS_STRING | ((IS_STR_INTERNED | IS_STR_PERMANENT) << 8); in accel_new_interned_string()
500 GC_TYPE(p->key) = IS_STRING; in accel_new_interned_string()
501 GC_FLAGS(p->key) = IS_STR_INTERNED | IS_STR_PERMANENT; in accel_new_interned_string()
503 ZSTR_H(p->key) = ZSTR_H(str); in accel_new_interned_string()
504 ZSTR_LEN(p->key) = ZSTR_LEN(str); in accel_new_interned_string()
505 memcpy(ZSTR_VAL(p->key), ZSTR_VAL(str), ZSTR_LEN(str)); in accel_new_interned_string()
506 ZVAL_INTERNED_STR(&p->val, p->key); in accel_new_interned_string()
507 Z_NEXT(p->val) = HT_HASH(&ZCSG(interned_strings), nIndex); in accel_new_interned_string()
510 return p->key; in accel_new_interned_string()
521 Bucket *p, *q; in accel_use_shm_interned_strings() local
537 p = CG(function_table)->arData + idx; in accel_use_shm_interned_strings()
538 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
539 if (p->key) { in accel_use_shm_interned_strings()
540 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
542 if (Z_FUNC(p->val)->common.function_name) { in accel_use_shm_interned_strings()
543 …Z_FUNC(p->val)->common.function_name = accel_new_interned_string(Z_FUNC(p->val)->common.function_n… in accel_use_shm_interned_strings()
551 p = CG(class_table)->arData + idx; in accel_use_shm_interned_strings()
552 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
553 ce = (zend_class_entry*)Z_PTR(p->val); in accel_use_shm_interned_strings()
555 if (p->key) { in accel_use_shm_interned_strings()
556 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
602 p = EG(zend_constants)->arData + idx; in accel_use_shm_interned_strings()
603 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
604 if (p->key) { in accel_use_shm_interned_strings()
605 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
613 p = CG(auto_globals)->arData + idx; in accel_use_shm_interned_strings()
614 if (Z_TYPE(p->val) == IS_UNDEF) continue; in accel_use_shm_interned_strings()
616 auto_global = (zend_auto_global*)Z_PTR(p->val);; in accel_use_shm_interned_strings()
620 if (p->key) { in accel_use_shm_interned_strings()
621 p->key = accel_new_interned_string(p->key); in accel_use_shm_interned_strings()
2098 Bucket *p; in accel_reset_pcre_cache() local
2100 ZEND_HASH_FOREACH_BUCKET(&PCRE_G(pcre_cache), p) { in accel_reset_pcre_cache()
2102 if (zend_accel_in_shm(p->key)) { in accel_reset_pcre_cache()
2103 p->key = NULL; in accel_reset_pcre_cache()
2104 zend_hash_del_bucket(&PCRE_G(pcre_cache), p); in accel_reset_pcre_cache()
2284 Bucket *p = ht->arData; in accel_fast_hash_destroy() local
2285 Bucket *end = p + ht->nNumUsed; in accel_fast_hash_destroy()
2287 while (p != end) { in accel_fast_hash_destroy()
2288 if (Z_REFCOUNTED(p->val) && Z_DELREF(p->val) == 0) { in accel_fast_hash_destroy()
2289 accel_fast_zval_dtor(&p->val); in accel_fast_hash_destroy()
2291 p++; in accel_fast_hash_destroy()
2295 static inline void zend_accel_fast_del_bucket(HashTable *ht, uint32_t idx, Bucket *p) in zend_accel_fast_del_bucket() argument
2297 uint32_t nIndex = p->h | ht->nTableMask; in zend_accel_fast_del_bucket()
2307 Z_NEXT(prev->val) = Z_NEXT(p->val); in zend_accel_fast_del_bucket()
2309 HT_HASH(ht, p->h | ht->nTableMask) = Z_NEXT(p->val); in zend_accel_fast_del_bucket()