Lines Matching refs:bucket

72 	php_stream_bucket *bucket = (php_stream_bucket *)res->ptr;  in ZEND_RSRC_DTOR_FUNC()  local
73 if (bucket) { in ZEND_RSRC_DTOR_FUNC()
74 php_stream_bucket_delref(bucket); in ZEND_RSRC_DTOR_FUNC()
75 bucket = NULL; in ZEND_RSRC_DTOR_FUNC()
224 php_stream_bucket *bucket = buckets_in->head; in userfilter_filter() local
227 while ((bucket = buckets_in->head)) { in userfilter_filter()
229 php_stream_bucket_unlink(bucket); in userfilter_filter()
230 php_stream_bucket_delref(bucket); in userfilter_filter()
234 php_stream_bucket *bucket = buckets_out->head; in userfilter_filter() local
235 while (bucket != NULL) { in userfilter_filter()
236 php_stream_bucket_unlink(bucket); in userfilter_filter()
237 php_stream_bucket_delref(bucket); in userfilter_filter()
238 bucket = buckets_out->head; in userfilter_filter()
400 php_stream_bucket *bucket; in PHP_FUNCTION() local
413 if (brigade->head && (bucket = php_stream_bucket_make_writeable(brigade->head))) { in PHP_FUNCTION()
414 ZVAL_RES(&zbucket, zend_register_resource(bucket, le_bucket)); in PHP_FUNCTION()
419 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
420 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
431 php_stream_bucket *bucket; in php_stream_bucket_attach() local
447 …if ((bucket = (php_stream_bucket *)zend_fetch_resource_ex(pzbucket, PHP_STREAM_BUCKET_RES_NAME, le… in php_stream_bucket_attach()
452 if (!bucket->own_buf) { in php_stream_bucket_attach()
453 bucket = php_stream_bucket_make_writeable(bucket); in php_stream_bucket_attach()
455 if (bucket->buflen != Z_STRLEN_P(pzdata)) { in php_stream_bucket_attach()
456 bucket->buf = perealloc(bucket->buf, Z_STRLEN_P(pzdata), bucket->is_persistent); in php_stream_bucket_attach()
457 bucket->buflen = Z_STRLEN_P(pzdata); in php_stream_bucket_attach()
459 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach()
463 php_stream_bucket_append(brigade, bucket); in php_stream_bucket_attach()
465 php_stream_bucket_prepend(brigade, bucket); in php_stream_bucket_attach()
470 if (bucket->refcount == 1) { in php_stream_bucket_attach()
471 bucket->refcount++; in php_stream_bucket_attach()
501 php_stream_bucket *bucket; in PHP_FUNCTION() local
515 bucket = php_stream_bucket_new(stream, pbuffer, buffer_len, 1, php_stream_is_persistent(stream)); in PHP_FUNCTION()
517 if (bucket == NULL) { in PHP_FUNCTION()
521 ZVAL_RES(&zbucket, zend_register_resource(bucket, le_bucket)); in PHP_FUNCTION()
526 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
527 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()