Searched refs:bucket (Results 1 - 22 of 22) sorted by relevance

/PHP_5_5/ext/standard/
H A Dfilestat.c1205 realpath_cache_bucket *bucket = *buckets; local
1206 while(bucket) {
1211 /* bucket->key is unsigned long */
1212 if (LONG_MAX >= bucket->key) {
1213 add_assoc_long(entry, "key", bucket->key);
1215 add_assoc_double(entry, "key", (double)bucket->key);
1217 add_assoc_bool(entry, "is_dir", bucket->is_dir);
1218 add_assoc_stringl(entry, "realpath", bucket->realpath, bucket->realpath_len, 1);
1219 add_assoc_long(entry, "expires", bucket
[all...]
H A Dfilters.c45 php_stream_bucket *bucket; local
49 bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC);
51 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52);
52 consumed += bucket->buflen;
54 php_stream_bucket_append(buckets_out, bucket TSRMLS_CC);
93 php_stream_bucket *bucket; local
97 bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC);
99 php_strtr(bucket->buf, bucket
121 php_stream_bucket *bucket; local
212 php_stream_bucket *bucket; local
1750 php_stream_bucket *bucket = NULL; local
1870 php_stream_bucket *bucket; local
2082 php_stream_bucket *bucket; local
[all...]
H A Duser_filters.c28 #define PHP_STREAM_BRIGADE_RES_NAME "userfilter.bucket brigade"
29 #define PHP_STREAM_BUCKET_RES_NAME "userfilter.bucket"
81 php_stream_bucket *bucket = (php_stream_bucket *)rsrc->ptr; local
82 if (bucket) {
83 php_stream_bucket_delref(bucket TSRMLS_CC);
84 bucket = NULL;
244 php_stream_bucket *bucket = buckets_in->head; local
247 while ((bucket = buckets_in->head)) {
249 php_stream_bucket_unlink(bucket TSRMLS_CC);
250 php_stream_bucket_delref(bucket TSRMLS_C
254 php_stream_bucket *bucket = buckets_out->head; local
423 php_stream_bucket *bucket; local
452 php_stream_bucket *bucket; local
516 php_stream_bucket *bucket; local
[all...]
H A Dbasic_functions.c2631 ZEND_ARG_INFO(0, bucket)
2636 ZEND_ARG_INFO(0, bucket)
/PHP_5_5/main/streams/
H A Dfilter.c76 php_stream_bucket *bucket; local
78 bucket = (php_stream_bucket*)pemalloc(sizeof(php_stream_bucket), is_persistent);
80 if (bucket == NULL) {
84 bucket->next = bucket->prev = NULL;
87 /* all data in a persistent bucket must also be persistent */
88 bucket->buf = pemalloc(buflen, 1);
90 if (bucket->buf == NULL) {
91 pefree(bucket, 1);
95 memcpy(bucket
356 php_stream_bucket *bucket; local
434 php_stream_bucket *bucket; local
[all...]
H A Dphp_stream_filter_api.h30 * When data is written to the stream, it is placed into a bucket and placed at
50 /* if non-zero, buf should be pefreed when the bucket is destroyed */
72 PHPAPI void php_stream_bucket_delref(php_stream_bucket *bucket TSRMLS_DC);
73 #define php_stream_bucket_addref(bucket) (bucket)->refcount++
74 PHPAPI void php_stream_bucket_prepend(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket TSRMLS_DC);
75 PHPAPI void php_stream_bucket_append(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket TSRMLS_DC);
76 PHPAPI void php_stream_bucket_unlink(php_stream_bucket *bucket TSRMLS_DC);
77 PHPAPI php_stream_bucket *php_stream_bucket_make_writeable(php_stream_bucket *bucket TSRMLS_DC);
H A Dstreams.c591 php_stream_bucket *bucket; local
595 /* read a chunk into a bucket */
598 bucket = php_stream_bucket_new(stream, chunk_buf, justread, 0, 0 TSRMLS_CC);
600 /* after this call, bucket is owned by the brigade */
601 php_stream_bucket_append(brig_inp, bucket TSRMLS_CC);
631 bucket = brig_inp->head;
632 /* grow buffer to hold this bucket
634 if (stream->readbuflen - stream->writepos < bucket->buflen) {
635 stream->readbuflen += bucket->buflen;
639 memcpy(stream->readbuf + stream->writepos, bucket
1162 php_stream_bucket *bucket; local
[all...]
/PHP_5_5/TSRM/
H A Dtsrm_virtual_cwd.c617 realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n]; local
619 while (*bucket != NULL) {
620 if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
621 memcmp(path, (*bucket)->path, path_len) == 0) {
622 realpath_cache_bucket *r = *bucket;
623 *bucket = (*bucket)->next;
635 bucket = &(*bucket)
653 realpath_cache_bucket *bucket = malloc(size); local
700 realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n]; local
[all...]
H A Dtsrm_win32.c208 realpath_cache_bucket * bucket = NULL; local
282 bucket = realpath_cache_lookup(pathname, strlen(pathname), t TSRMLS_CC);
283 if(bucket == NULL && real_path == NULL) {
289 bucket = realpath_cache_lookup(pathname, strlen(pathname), t TSRMLS_CC);
296 if(bucket != NULL && bucket->is_rvalid) {
297 fAccess = bucket->is_readable;
302 if(bucket != NULL && bucket->is_wvalid) {
303 fAccess = bucket
[all...]
/PHP_5_5/Zend/
H A Dzend_gc.c204 obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zv)].bucket.obj;
227 obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zv)].bucket.obj;
279 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj;
385 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj;
485 struct _store_object *obj = &EG(objects_store).object_buckets[current->handle].bucket.obj;
524 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj;
581 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj;
644 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj;
716 struct _store_object *obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(pz)].bucket.obj;
761 struct _store_object *obj = &EG(objects_store).object_buckets[current->handle].bucket
[all...]
H A Dzend_hash.h55 typedef struct bucket { struct
60 struct bucket *pListNext;
61 struct bucket *pListLast;
62 struct bucket *pNext;
63 struct bucket *pLast;
H A Dzend_objects.c104 if (!obj_bucket->bucket.obj.handlers) {
105 obj_bucket->bucket.obj.handlers = &std_object_handlers;
107 Z_OBJ_HT_P(obj) = obj_bucket->bucket.obj.handlers;
H A Dzend_objects_API.c51 struct _store_object *obj = &objects->object_buckets[i].bucket.obj;
58 obj = &objects->object_buckets[i].bucket.obj;
91 struct _store_object *obj = &objects->object_buckets[i].bucket.obj;
114 EG(objects_store).free_list_head = EG(objects_store).object_buckets[handle].bucket.free_list.next;
122 obj = &EG(objects_store).object_buckets[handle].bucket.obj;
145 return EG(objects_store).object_buckets[handle].bucket.obj.refcount;
152 EG(objects_store).object_buckets[handle].bucket.obj.refcount++;
163 EG(objects_store).object_buckets[handle].bucket.obj.refcount++;
167 EG(objects_store).object_buckets[handle].bucket.free_list.next = EG(objects_store).free_list_head; \
196 obj = &EG(objects_store).object_buckets[handle].bucket
[all...]
H A Dzend_objects_API.h48 } bucket; member in struct:_zend_object_store_bucket
H A Dzend_object_handlers.c36 ((zend_object*)(EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zval_p)].bucket.obj.object))
/PHP_5_5/ext/bz2/
H A Dbz2_filter.c77 php_stream_bucket *bucket; local
94 bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC);
95 while (bin < bucket->buflen) {
100 php_stream_bucket_delref(bucket TSRMLS_CC);
108 consumed += bucket->buflen;
112 desired = bucket->buflen - bin;
116 memcpy(data->strm.next_in, bucket->buf + bin, desired);
130 php_stream_bucket_delref(bucket TSRMLS_CC);
149 php_stream_bucket_delref(bucket TSRMLS_CC);
154 php_stream_bucket_delref(bucket TSRMLS_C
215 php_stream_bucket *bucket; local
[all...]
/PHP_5_5/ext/iconv/
H A Diconv.c2738 php_stream_bucket *bucket = NULL; local
2743 bucket = buckets_in->head;
2745 php_stream_bucket_unlink(bucket TSRMLS_CC);
2748 buckets_out, bucket->buf, bucket->buflen, &consumed,
2753 php_stream_bucket_delref(bucket TSRMLS_CC);
2771 if (bucket != NULL) {
2772 php_stream_bucket_delref(bucket TSRMLS_CC);
/PHP_5_5/ext/mcrypt/
H A Dmcrypt_filter.c45 php_stream_bucket *bucket; local
56 bucket = buckets_in->head;
58 consumed += bucket->buflen;
63 int chunklen = bucket->buflen + data->block_used, n;
70 memcpy(outchunk + data->block_used, bucket->buf, bucket->buflen);
88 php_stream_bucket_unlink(bucket TSRMLS_CC);
89 php_stream_bucket_delref(bucket TSRMLS_CC);
92 php_stream_bucket_make_writeable(bucket TSRMLS_CC);
94 mcrypt_generic(data->module, bucket
[all...]
/PHP_5_5/ext/opcache/
H A DZendAccelerator.c1105 static void zend_accel_add_key(char *key, unsigned int key_length, zend_accel_hash_entry *bucket TSRMLS_DC)
1116 if (zend_accel_hash_update(&ZCSG(hash), new_key, key_length + 1, 1, bucket)) {
1128 zend_accel_hash_entry *bucket; local
1154 bucket = zend_accel_hash_find_entry(&ZCSG(hash), new_persistent_script->full_path, new_persistent_script->full_path_len + 1);
1155 if (bucket) {
1156 zend_persistent_script *existing_persistent_script = (zend_persistent_script *)bucket->data;
1162 zend_accel_add_key(key, key_length, bucket TSRMLS_CC);
1201 bucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->full_path, new_persistent_script->full_path_len + 1, 0, new_persistent_script);
1202 if (bucket) {
1210 if (zend_accel_hash_update(&ZCSG(hash), key, key_length + 1, 1, bucket)) {
1529 zend_accel_hash_entry *bucket; local
1835 zend_accel_hash_entry *bucket; local
2005 zend_accel_hash_entry *bucket; local
[all...]
/PHP_5_5/sapi/apache2handler/
H A Dsapi_apache2.c541 apr_bucket *bucket; local
681 bucket = apr_bucket_eos_create(r->connection->bucket_alloc);
682 APR_BRIGADE_INSERT_TAIL(brigade, bucket);
/PHP_5_5/ext/zlib/
H A Dzlib_filter.c64 php_stream_bucket *bucket; local
79 bucket = buckets_in->head;
81 bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC);
83 while (bin < (unsigned int) bucket->buflen) {
86 consumed += bucket->buflen;
90 desired = bucket->buflen - bin;
94 memcpy(data->strm.next_in, bucket->buf + bin, desired);
103 php_stream_bucket_delref(bucket TSRMLS_CC);
124 php_stream_bucket_delref(bucket TSRMLS_CC);
129 consumed += bucket
189 php_stream_bucket *bucket; local
[all...]
/PHP_5_5/ext/dom/
H A Dphp_dom.c598 obj = &EG(objects_store).object_buckets[handle].bucket.obj;

Completed in 40 milliseconds