Searched defs:bucket (Results 1 - 13 of 13) sorted by relevance

/PHP_TRUNK/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_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c540 apr_bucket *bucket; local
680 bucket = apr_bucket_eos_create(r->connection->bucket_alloc);
681 APR_BRIGADE_INSERT_TAIL(brigade, bucket);
/PHP_TRUNK/ext/zlib/
H A Dzlib_filter.c64 php_stream_bucket *bucket; local
79 bucket = php_stream_bucket_make_writeable(buckets_in->head TSRMLS_CC);
81 while (bin < (unsigned int) bucket->buflen) {
84 consumed += bucket->buflen;
88 desired = bucket->buflen - bin;
92 memcpy(data->strm.next_in, bucket->buf + bin, desired);
101 php_stream_bucket_delref(bucket TSRMLS_CC);
122 php_stream_bucket_delref(bucket TSRMLS_CC);
127 consumed += bucket->buflen;
128 php_stream_bucket_delref(bucket TSRMLS_C
187 php_stream_bucket *bucket; local
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c1095 static void zend_accel_add_key(char *key, unsigned int key_length, zend_accel_hash_entry *bucket TSRMLS_DC)
1106 if (zend_accel_hash_update(&ZCSG(hash), new_key, key_length, 1, bucket)) {
1118 zend_accel_hash_entry *bucket; local
1144 bucket = zend_accel_hash_find_entry(&ZCSG(hash), new_persistent_script->full_path->val, new_persistent_script->full_path->len);
1145 if (bucket) {
1146 zend_persistent_script *existing_persistent_script = (zend_persistent_script *)bucket->data;
1152 zend_accel_add_key(key, key_length, bucket TSRMLS_CC);
1187 bucket = zend_accel_hash_update(&ZCSG(hash), new_persistent_script->full_path->val, new_persistent_script->full_path->len, 0, new_persistent_script);
1188 if (bucket) {
1196 if (zend_accel_hash_update(&ZCSG(hash), key, key_length, 1, bucket)) {
1495 zend_accel_hash_entry *bucket; local
1742 zend_accel_hash_entry *bucket; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dfilestat.c1230 realpath_cache_bucket *bucket = *buckets; local
1231 while(bucket) {
1236 /* bucket->key is unsigned long */
1237 if (ZEND_LONG_MAX >= bucket->key) {
1238 add_assoc_long_ex(&entry, "key", sizeof("key") - 1, bucket->key);
1240 add_assoc_double_ex(&entry, "key", sizeof("key") - 1, (double)bucket->key);
1242 add_assoc_bool_ex(&entry, "is_dir", sizeof("is_dir") - 1, bucket->is_dir);
1243 add_assoc_stringl_ex(&entry, "realpath", sizeof("realpath") - 1, bucket->realpath, bucket->realpath_len);
1244 add_assoc_long_ex(&entry, "expires", sizeof("expires") - 1, 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
1731 php_stream_bucket *bucket = NULL; local
1851 php_stream_bucket *bucket; local
2063 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 *)res->ptr; local
82 if (bucket) {
83 php_stream_bucket_delref(bucket TSRMLS_CC);
84 bucket = NULL;
234 php_stream_bucket *bucket = buckets_in->head; local
237 while ((bucket = buckets_in->head)) {
239 php_stream_bucket_unlink(bucket TSRMLS_CC);
240 php_stream_bucket_delref(bucket TSRMLS_C
244 php_stream_bucket *bucket = buckets_out->head; local
410 php_stream_bucket *bucket; local
438 php_stream_bucket *bucket; local
502 php_stream_bucket *bucket; local
[all...]
/PHP_TRUNK/main/streams/
H A Dfilter.c74 php_stream_bucket *bucket; local
76 bucket = (php_stream_bucket*)pemalloc(sizeof(php_stream_bucket), is_persistent);
78 if (bucket == NULL) {
82 bucket->next = bucket->prev = NULL;
85 /* all data in a persistent bucket must also be persistent */
86 bucket->buf = pemalloc(buflen, 1);
88 if (bucket->buf == NULL) {
89 pefree(bucket, 1);
93 memcpy(bucket
354 php_stream_bucket *bucket; local
432 php_stream_bucket *bucket; local
[all...]
H A Dstreams.c595 php_stream_bucket *bucket; local
599 /* read a chunk into a bucket */
602 bucket = php_stream_bucket_new(stream, chunk_buf, justread, 0, 0 TSRMLS_CC);
604 /* after this call, bucket is owned by the brigade */
605 php_stream_bucket_append(brig_inp, bucket TSRMLS_CC);
635 bucket = brig_inp->head;
636 /* grow buffer to hold this bucket
638 if (stream->readbuflen - stream->writepos < bucket->buflen) {
639 stream->readbuflen += bucket->buflen;
643 memcpy(stream->readbuf + stream->writepos, bucket
1166 php_stream_bucket *bucket; local
[all...]
/PHP_TRUNK/TSRM/
H A Dtsrm_win32.c208 realpath_cache_bucket * bucket = NULL; local
282 bucket = realpath_cache_lookup(pathname, (int)strlen(pathname), t TSRMLS_CC);
283 if(bucket == NULL && real_path == NULL) {
289 bucket = realpath_cache_lookup(pathname, (int)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_TRUNK/ext/iconv/
H A Diconv.c2783 php_stream_bucket *bucket = NULL; local
2788 bucket = buckets_in->head;
2790 php_stream_bucket_unlink(bucket TSRMLS_CC);
2793 buckets_out, bucket->buf, bucket->buflen, &consumed,
2798 php_stream_bucket_delref(bucket TSRMLS_CC);
2816 if (bucket != NULL) {
2817 php_stream_bucket_delref(bucket TSRMLS_CC);
/PHP_TRUNK/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_TRUNK/Zend/
H A Dzend_virtual_cwd.c646 realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n]; local
648 while (*bucket != NULL) {
649 if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
650 memcmp(path, (*bucket)->path, path_len) == 0) {
651 realpath_cache_bucket *r = *bucket;
652 *bucket = (*bucket)->next;
664 bucket = &(*bucket)
682 realpath_cache_bucket *bucket = malloc(size); local
729 realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n]; local
[all...]

Completed in 21 milliseconds