/PHP-8.4/main/streams/ |
H A D | filter.c | 77 bucket->next = bucket->prev = NULL; in php_stream_bucket_new() 94 return bucket; in php_stream_bucket_new() 110 if (bucket->refcount == 1 && bucket->own_buf) { in php_stream_bucket_make_writeable() 154 pefree(bucket->buf, bucket->is_persistent); in php_stream_bucket_delref() 156 pefree(bucket, bucket->is_persistent); in php_stream_bucket_delref() 195 bucket->prev->next = bucket->next; in php_stream_bucket_unlink() 197 bucket->brigade->head = bucket->next; in php_stream_bucket_unlink() 200 bucket->next->prev = bucket->prev; in php_stream_bucket_unlink() 202 bucket->brigade->tail = bucket->prev; in php_stream_bucket_unlink() 205 bucket->next = bucket->prev = NULL; in php_stream_bucket_unlink() [all …]
|
H A D | php_stream_filter_api.h | 68 PHPAPI void php_stream_bucket_delref(php_stream_bucket *bucket); 69 #define php_stream_bucket_addref(bucket) (bucket)->refcount++ argument 70 PHPAPI void php_stream_bucket_prepend(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket… 71 PHPAPI void php_stream_bucket_append(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket); 72 PHPAPI void php_stream_bucket_unlink(php_stream_bucket *bucket); 73 PHPAPI php_stream_bucket *php_stream_bucket_make_writeable(php_stream_bucket *bucket);
|
/PHP-8.4/ext/standard/tests/filters/ |
H A D | bug73586.phpt | 8 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 D | bug35916.phpt | 12 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 D | bug72941.phpt | 2 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 D | read.phpt | 10 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 D | bug46164-1.phpt | 7 while($bucket = stream_bucket_make_writeable($in)) { 8 $consumed += $bucket->datalen; 9 stream_bucket_append($out, $bucket);
|
H A D | bug46164-2.phpt | 7 while($bucket = stream_bucket_make_writeable($in)) { 8 $consumed += $bucket->datalen; 9 stream_bucket_append($out, $bucket);
|
/PHP-8.4/ext/standard/ |
H A D | user_filters.c | 69 if (bucket) { in ZEND_RSRC_DTOR_FUNC() 71 bucket = NULL; in ZEND_RSRC_DTOR_FUNC() 345 php_stream_bucket *bucket; in PHP_FUNCTION() local 377 php_stream_bucket *bucket; in php_stream_bucket_attach() local 401 if (!bucket->own_buf) { in php_stream_bucket_attach() 402 bucket = php_stream_bucket_make_writeable(bucket); in php_stream_bucket_attach() 405 bucket->buf = perealloc(bucket->buf, Z_STRLEN_P(pzdata), bucket->is_persistent); in php_stream_bucket_attach() 408 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach() 419 if (bucket->refcount == 1) { in php_stream_bucket_attach() 420 bucket->refcount++; in php_stream_bucket_attach() [all …]
|
H A D | filters.c | 40 php_stream_bucket *bucket; in strfilter_rot13_filter() local 46 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter() 47 consumed += bucket->buflen; in strfilter_rot13_filter() 88 php_stream_bucket *bucket; in strfilter_toupper_filter() local 94 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter() 95 consumed += bucket->buflen; in strfilter_toupper_filter() 116 php_stream_bucket *bucket; in strfilter_tolower_filter() local 122 php_strtr(bucket->buf, bucket->buflen, uppercase, lowercase, 26); in strfilter_tolower_filter() 1514 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter() 1537 if (bucket != NULL) { in strfilter_convert_filter() [all …]
|
H A D | filestat.c | 1105 realpath_cache_bucket *bucket = *buckets; in PHP_FUNCTION() local 1106 while(bucket) { in PHP_FUNCTION() 1112 if (ZEND_LONG_MAX >= bucket->key) { in PHP_FUNCTION() 1113 add_assoc_long_ex(&entry, "key", sizeof("key") - 1, bucket->key); in PHP_FUNCTION() 1115 add_assoc_double_ex(&entry, "key", sizeof("key") - 1, (double)bucket->key); in PHP_FUNCTION() 1117 add_assoc_bool_ex(&entry, "is_dir", sizeof("is_dir") - 1, bucket->is_dir); in PHP_FUNCTION() 1118 …add_assoc_stringl_ex(&entry, "realpath", sizeof("realpath") - 1, bucket->realpath, bucket->realpat… in PHP_FUNCTION() 1119 add_assoc_long_ex(&entry, "expires", sizeof("expires") - 1, bucket->expires); in PHP_FUNCTION() 1121 add_assoc_bool_ex(&entry, "is_rvalid", sizeof("is_rvalid") - 1, bucket->is_rvalid); in PHP_FUNCTION() 1126 zend_hash_str_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len, &entry); in PHP_FUNCTION() [all …]
|
/PHP-8.4/ext/standard/tests/file/ |
H A D | bug39551.phpt | 6 $bucket = stream_bucket_new(fopen('php://temp', 'w+'), ''); 7 var_dump($bucket); 12 $bucket = stream_bucket_new(fopen('php://temp', 'w+'), ''); 13 stream_bucket_append($out, $bucket); 26 ["bucket"]=> 27 resource(%d) of type (userfilter.bucket)
|
H A D | userfilters.phpt | 8 while ($bucket = stream_bucket_make_writeable($in)) { 9 $bucket->data = strtoupper($bucket->data); 10 $consumed += strlen($bucket->data); 11 stream_bucket_append($out, $bucket);
|
/PHP-8.4/ext/zlib/ |
H A D | zlib_filter.c | 60 php_stream_bucket *bucket; in php_zlib_inflate_filter() local 79 desired = bucket->buflen - bin; in php_zlib_inflate_filter() 117 consumed += bucket->buflen; in php_zlib_inflate_filter() 118 php_stream_bucket_delref(bucket); in php_zlib_inflate_filter() 129 bucket = php_stream_bucket_new( in php_zlib_inflate_filter() 178 php_stream_bucket *bucket; in php_zlib_deflate_filter() local 193 bucket = buckets_in->head; in php_zlib_deflate_filter() 195 bucket = php_stream_bucket_make_writeable(bucket); in php_zlib_deflate_filter() 200 desired = bucket->buflen - bin; in php_zlib_deflate_filter() 232 consumed += bucket->buflen; in php_zlib_deflate_filter() [all …]
|
/PHP-8.4/Zend/tests/ |
H A D | bug21478.phpt | 7 while ($bucket = stream_bucket_make_writeable($in)) { 8 $bucket->data = strtoupper($bucket->data); 9 stream_bucket_append($out, $bucket); 10 $consumed += strlen($bucket->data);
|
H A D | bug78406.phpt | 15 while ($bucket = stream_bucket_make_writeable($in)) 17 $this->data .= $bucket->data; 26 $bucket = stream_bucket_new($this->stream, $this->data); 27 stream_bucket_append($out, $bucket);
|
/PHP-8.4/ext/bz2/ |
H A D | bz2_filter.c | 74 php_stream_bucket *bucket; in php_bz2_decompress_filter() local 92 while (bin < bucket->buflen) { in php_bz2_decompress_filter() 105 consumed += bucket->buflen; in php_bz2_decompress_filter() 109 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() 233 desired = bucket->buflen - bin; in php_bz2_compress_filter() [all …]
|
/PHP-8.4/ext/standard/tests/streams/ |
H A D | user_streams_consumed_bug.phpt | 10 while ($bucket = stream_bucket_make_writeable($in)) { 11 self::$cache .= $bucket->data; 12 $consumed += $bucket->datalen; 13 stream_bucket_append($out, $bucket);
|
H A D | bug79984.phpt | 21 while ($bucket = stream_bucket_make_writeable($in)) { 22 $bucket->data = strtoupper($bucket->data); 23 $consumed += $bucket->datalen; 24 stream_bucket_append($out, $bucket);
|
H A D | stream_multi_filters_close.phpt | 10 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-8.4/TSRM/ |
H A D | tsrm_win32.c | 288 if(bucket != NULL && bucket->is_rvalid) { in tsrm_win32_access() 289 fAccess = bucket->is_readable; in tsrm_win32_access() 294 if(bucket != NULL && bucket->is_wvalid) { in tsrm_win32_access() 300 if(bucket != NULL && bucket->is_rvalid) { in tsrm_win32_access() 306 if(bucket != NULL && bucket->is_rvalid && bucket->is_wvalid) { in tsrm_win32_access() 307 fAccess = bucket->is_readable & bucket->is_writable; in tsrm_win32_access() 335 if(bucket != NULL) { in tsrm_win32_access() 337 bucket->is_rvalid = 1; in tsrm_win32_access() 341 bucket->is_wvalid = 1; in tsrm_win32_access() 344 bucket->is_rvalid = 1; in tsrm_win32_access() [all …]
|
/PHP-8.4/Zend/ |
H A D | zend_virtual_cwd.c | 368 if (key == (*bucket)->key && path_len == (*bucket)->path_len && in realpath_cache_del() 371 *bucket = (*bucket)->next; in realpath_cache_del() 383 bucket = &(*bucket)->next; in realpath_cache_del() 409 bucket->path = (char*)bucket + sizeof(realpath_cache_bucket); in realpath_cache_add() 413 bucket->realpath = bucket->path; in realpath_cache_add() 415 bucket->realpath = bucket->path + (path_len + 1); in realpath_cache_add() 444 *bucket = (*bucket)->next; in realpath_cache_find() 453 } else if (key == (*bucket)->key && path_len == (*bucket)->path_len && in realpath_cache_find() 455 return *bucket; in realpath_cache_find() 457 bucket = &(*bucket)->next; in realpath_cache_find() [all …]
|
H A D | zend_property_hooks.c | 230 Bucket *bucket = properties->arData + pos; in zho_dynamic_it_fetch_current() local 232 if (UNEXPECTED(Z_TYPE(bucket->val) == IS_UNDEF)) { in zho_dynamic_it_fetch_current() 237 if (bucket->key && zend_check_property_access(zobj, bucket->key, true) != SUCCESS) { in zho_dynamic_it_fetch_current() 241 if (hooked_iter->by_ref && Z_TYPE(bucket->val) != IS_REFERENCE) { in zho_dynamic_it_fetch_current() 242 ZVAL_MAKE_REF(&bucket->val); in zho_dynamic_it_fetch_current() 244 ZVAL_COPY(&hooked_iter->current_data, &bucket->val); in zho_dynamic_it_fetch_current() 246 if (bucket->key) { in zho_dynamic_it_fetch_current() 247 ZVAL_STR_COPY(&hooked_iter->current_key, bucket->key); in zho_dynamic_it_fetch_current() 249 ZVAL_LONG(&hooked_iter->current_key, bucket->h); in zho_dynamic_it_fetch_current()
|
/PHP-8.4/ext/opcache/tests/ |
H A D | bug64353.phpt | 16 while ($bucket = stream_bucket_make_writeable($in)) { 17 $consumed += $bucket->datalen; 18 stream_bucket_append($out, $bucket);
|
H A D | bug74596.phpt | 38 while ($bucket = stream_bucket_make_writeable($in)) { 39 stream_bucket_append($out, $bucket);
|