Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 25 of 36) sorted by relevance

12

/PHP-7.3/main/streams/
H A Dfilter.c79 bucket->next = bucket->prev = NULL; in php_stream_bucket_new()
96 return bucket; in php_stream_bucket_new()
112 if (bucket->refcount == 1 && bucket->own_buf) { in php_stream_bucket_make_writeable()
156 pefree(bucket->buf, bucket->is_persistent); in php_stream_bucket_delref()
158 pefree(bucket, bucket->is_persistent); in php_stream_bucket_delref()
197 bucket->prev->next = bucket->next; in php_stream_bucket_unlink()
199 bucket->brigade->head = bucket->next; in php_stream_bucket_unlink()
202 bucket->next->prev = bucket->prev; in php_stream_bucket_unlink()
204 bucket->brigade->tail = bucket->prev; in php_stream_bucket_unlink()
207 bucket->next = bucket->prev = NULL; in php_stream_bucket_unlink()
[all …]
H A Dphp_stream_filter_api.h70 PHPAPI void php_stream_bucket_delref(php_stream_bucket *bucket);
71 #define php_stream_bucket_addref(bucket) (bucket)->refcount++ argument
72 PHPAPI void php_stream_bucket_prepend(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket
73 PHPAPI void php_stream_bucket_append(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket);
74 PHPAPI void php_stream_bucket_unlink(php_stream_bucket *bucket);
75 PHPAPI php_stream_bucket *php_stream_bucket_make_writeable(php_stream_bucket *bucket);
/PHP-7.3/ext/standard/tests/filters/
H A Dbug73586.phpt8 while ($bucket = stream_bucket_make_writeable($in)) {
9 $consumed += $bucket->datalen;
10 stream_bucket_append($out, $bucket);
13 $bucket = stream_bucket_new($this->stream, "FooBar\n");
14 stream_bucket_append($out, $bucket);
29 while ($bucket = stream_bucket_make_writeable($in)) {
30 $consumed += $bucket->datalen;
31 stream_bucket_append($out, $bucket);
34 $bucket = stream_bucket_new($this->stream, "FooBar\n");
35 stream_bucket_append($out, $bucket);
H A Dbug35916.phpt12 while($bucket=stream_bucket_make_writeable($in)) {
13 $bucket->data = strtoupper($bucket->data);
14 $consumed += $bucket->datalen;
15 stream_bucket_append($out, $bucket);
16 stream_bucket_append($out, $bucket);
H A Dbug72941.phpt2 Bug #72941 (Modifying bucket->data by-ref has no effect any longer)
9 while ($bucket = stream_bucket_make_writeable($in)) {
10 $this->rotate($bucket->data);
11 $consumed += $bucket->datalen;
12 stream_bucket_prepend($out, $bucket);
H A Dread.phpt10 while ($bucket = stream_bucket_make_writeable($in)) {
11 $bucket->data = strtoupper($bucket->data);
12 $consumed += $bucket->datalen;
13 stream_bucket_append($out, $bucket);
17 $bucket = stream_bucket_new($this->stream, "\n===close===\n");
18 stream_bucket_append($out, $bucket);
H A Dbug46164-1.phpt7 while($bucket = stream_bucket_make_writeable($in)) {
8 $consumed += $bucket->datalen;
9 stream_bucket_append($out, $bucket);
H A Dbug46164-2.phpt7 while($bucket = stream_bucket_make_writeable($in)) {
8 $consumed += $bucket->datalen;
9 stream_bucket_append($out, $bucket);
H A Dfilter_errors_user.phpt14 $bucket = stream_bucket_make_writeable($in);
20 while ($bucket = stream_bucket_make_writeable($in)) {
21 $consumed += $bucket->datalen;
22 stream_bucket_append($out, $bucket);
30 $bucket = stream_bucket_new($this->stream, "42");
31 stream_bucket_append($out, $bucket);
39 $bucket = stream_bucket_new($this->stream, "42");
/PHP-7.3/ext/standard/
H A Duser_filters.c71 if (bucket) { in ZEND_RSRC_DTOR_FUNC()
73 bucket = NULL; in ZEND_RSRC_DTOR_FUNC()
232 while (bucket != NULL) { in userfilter_filter()
418 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
452 if (!bucket->own_buf) { in php_stream_bucket_attach()
453 bucket = php_stream_bucket_make_writeable(bucket); in php_stream_bucket_attach()
456 bucket->buf = perealloc(bucket->buf, Z_STRLEN_P(pzdata), bucket->is_persistent); in php_stream_bucket_attach()
459 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach()
471 bucket->refcount++; in php_stream_bucket_attach()
516 if (bucket == NULL) { in PHP_FUNCTION()
[all …]
H A Dfilters.c43 php_stream_bucket *bucket; in strfilter_rot13_filter() local
49 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter()
91 php_stream_bucket *bucket; in strfilter_toupper_filter() local
97 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter()
119 php_stream_bucket *bucket; in strfilter_tolower_filter() local
125 php_strtr(bucket->buf, bucket->buflen, uppercase, lowercase, 26); in strfilter_tolower_filter()
210 php_stream_bucket *bucket; in strfilter_strip_tags_filter() local
218bucket->buflen = php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), inst->allowed_tags, i… in strfilter_strip_tags_filter()
1658 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter()
1681 if (bucket != NULL) { in strfilter_convert_filter()
[all …]
H A Dfilestat.c1121 realpath_cache_bucket *bucket = *buckets; in PHP_FUNCTION() local
1122 while(bucket) { in PHP_FUNCTION()
1128 if (ZEND_LONG_MAX >= bucket->key) { in PHP_FUNCTION()
1129 add_assoc_long_ex(&entry, "key", sizeof("key") - 1, bucket->key); in PHP_FUNCTION()
1131 add_assoc_double_ex(&entry, "key", sizeof("key") - 1, (double)bucket->key); in PHP_FUNCTION()
1133 add_assoc_bool_ex(&entry, "is_dir", sizeof("is_dir") - 1, bucket->is_dir); in PHP_FUNCTION()
1134 …add_assoc_stringl_ex(&entry, "realpath", sizeof("realpath") - 1, bucket->realpath, bucket->realpat… in PHP_FUNCTION()
1135 add_assoc_long_ex(&entry, "expires", sizeof("expires") - 1, bucket->expires); in PHP_FUNCTION()
1137 add_assoc_bool_ex(&entry, "is_rvalid", sizeof("is_rvalid") - 1, bucket->is_rvalid); in PHP_FUNCTION()
1142 zend_hash_str_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len, &entry); in PHP_FUNCTION()
[all …]
/PHP-7.3/ext/standard/tests/file/
H A Duserfilters.phpt8 while ($bucket = stream_bucket_make_writeable($in)) {
9 $bucket->data = strtoupper($bucket->data);
10 $consumed += strlen($bucket->data);
11 stream_bucket_append($out, $bucket);
H A Dbug39551.phpt6 $bucket = stream_bucket_new(fopen('php://temp', 'w+'), '');
11 $bucket = stream_bucket_new(fopen('php://temp', 'w+'), '');
12 stream_bucket_append($out, $bucket);
/PHP-7.3/ext/bz2/
H A Dbz2_filter.c75 php_stream_bucket *bucket; in php_bz2_decompress_filter() local
93 while (bin < bucket->buflen) { in php_bz2_decompress_filter()
106 consumed += bucket->buflen; in php_bz2_decompress_filter()
110 desired = bucket->buflen - bin; in php_bz2_decompress_filter()
128 php_stream_bucket_delref(bucket); in php_bz2_decompress_filter()
147 php_stream_bucket_delref(bucket); in php_bz2_decompress_filter()
152 php_stream_bucket_delref(bucket); in php_bz2_decompress_filter()
213 php_stream_bucket *bucket; in php_bz2_compress_filter() local
230 while (bin < bucket->buflen) { in php_bz2_compress_filter()
231 desired = bucket->buflen - bin; in php_bz2_compress_filter()
[all …]
/PHP-7.3/ext/zlib/
H A Dzlib_filter.c62 php_stream_bucket *bucket; in php_zlib_inflate_filter() local
81 desired = bucket->buflen - bin; in php_zlib_inflate_filter()
118 consumed += bucket->buflen; in php_zlib_inflate_filter()
119 php_stream_bucket_delref(bucket); in php_zlib_inflate_filter()
130 bucket = php_stream_bucket_new( in php_zlib_inflate_filter()
179 php_stream_bucket *bucket; in php_zlib_deflate_filter() local
194 bucket = buckets_in->head; in php_zlib_deflate_filter()
196 bucket = php_stream_bucket_make_writeable(bucket); in php_zlib_deflate_filter()
199 desired = bucket->buflen - bin; in php_zlib_deflate_filter()
229 consumed += bucket->buflen; in php_zlib_deflate_filter()
[all …]
/PHP-7.3/Zend/tests/
H A Dbug21478.phpt7 while ($bucket = stream_bucket_make_writeable($in)) {
8 $bucket->data = strtoupper($bucket->data);
9 stream_bucket_append($out, $bucket);
10 $consumed += strlen($bucket->data);
/PHP-7.3/ext/standard/tests/streams/
H A Duser_streams_consumed_bug.phpt10 while ($bucket = stream_bucket_make_writeable($in)) {
11 self::$cache .= $bucket->data;
12 $consumed += $bucket->datalen;
13 stream_bucket_append($out, $bucket);
H A Dstream_multi_filters_close.phpt10 while ($bucket = stream_bucket_make_writeable($in)) {
11 stream_bucket_append($out, stream_bucket_new($this->stream, $bucket->data));
29 while ($bucket = stream_bucket_make_writeable($in)) {
30 stream_bucket_append($out, stream_bucket_new($this->stream, $bucket->data));
/PHP-7.3/TSRM/
H A Dtsrm_win32.c291 if(bucket != NULL && bucket->is_rvalid) { in tsrm_win32_access()
292 fAccess = bucket->is_readable; in tsrm_win32_access()
297 if(bucket != NULL && bucket->is_wvalid) { in tsrm_win32_access()
303 if(bucket != NULL && bucket->is_rvalid) { in tsrm_win32_access()
309 if(bucket != NULL && bucket->is_rvalid && bucket->is_wvalid) { in tsrm_win32_access()
310 fAccess = bucket->is_readable & bucket->is_writable; in tsrm_win32_access()
338 if(bucket != NULL) { in tsrm_win32_access()
340 bucket->is_rvalid = 1; in tsrm_win32_access()
344 bucket->is_wvalid = 1; in tsrm_win32_access()
347 bucket->is_rvalid = 1; in tsrm_win32_access()
[all …]
/PHP-7.3/ext/opcache/tests/
H A Dbug64353.phpt16 while ($bucket = stream_bucket_make_writeable($in)) {
17 $consumed += $bucket->datalen;
18 stream_bucket_append($out, $bucket);
H A Dbug74596.phpt38 while ($bucket = stream_bucket_make_writeable($in)) {
39 stream_bucket_append($out, $bucket);
/PHP-7.3/Zend/
H A Dzend_virtual_cwd.c620 if (key == (*bucket)->key && path_len == (*bucket)->path_len && in realpath_cache_del()
623 *bucket = (*bucket)->next; in realpath_cache_del()
635 bucket = &(*bucket)->next; in realpath_cache_del()
661 bucket->path = (char*)bucket + sizeof(realpath_cache_bucket); in realpath_cache_add()
665 bucket->realpath = bucket->path; in realpath_cache_add()
667 bucket->realpath = bucket->path + (path_len + 1); in realpath_cache_add()
696 *bucket = (*bucket)->next; in realpath_cache_find()
705 } else if (key == (*bucket)->key && path_len == (*bucket)->path_len && in realpath_cache_find()
707 return *bucket; in realpath_cache_find()
709 bucket = &(*bucket)->next; in realpath_cache_find()
[all …]
/PHP-7.3/ext/mbstring/ucgendat/
H A Ducgendat.php555 foreach ($buckets as $bucket) {
556 $collisions = count($bucket);
570 list($k) = $bucket[$i];
582 $g = hashInt(0, $bucket[0][0]) % $gSize;
584 foreach ($bucket as $elem) {
598 foreach ($buckets as $bucket) {
599 if (count($bucket) != 1) {
603 $elem = $bucket[0];
/PHP-7.3/sapi/phpdbg/
H A Dphpdbg_watch.h68 Bucket *bucket; member
78 Bucket bucket; member

Completed in 86 milliseconds

12