Lines Matching refs:bucket

70 	php_stream_bucket *bucket = (php_stream_bucket *)res->ptr;  in ZEND_RSRC_DTOR_FUNC()  local
71 if (bucket) { in ZEND_RSRC_DTOR_FUNC()
72 php_stream_bucket_delref(bucket); in ZEND_RSRC_DTOR_FUNC()
73 bucket = NULL; in ZEND_RSRC_DTOR_FUNC()
221 php_stream_bucket *bucket = buckets_in->head; in userfilter_filter() local
224 while ((bucket = buckets_in->head)) { in userfilter_filter()
226 php_stream_bucket_unlink(bucket); in userfilter_filter()
227 php_stream_bucket_delref(bucket); in userfilter_filter()
231 php_stream_bucket *bucket = buckets_out->head; in userfilter_filter() local
232 while (bucket != NULL) { in userfilter_filter()
233 php_stream_bucket_unlink(bucket); in userfilter_filter()
234 php_stream_bucket_delref(bucket); in userfilter_filter()
235 bucket = buckets_out->head; in userfilter_filter()
399 php_stream_bucket *bucket; in PHP_FUNCTION() local
412 if (brigade->head && (bucket = php_stream_bucket_make_writeable(brigade->head))) { in PHP_FUNCTION()
413 ZVAL_RES(&zbucket, zend_register_resource(bucket, le_bucket)); in PHP_FUNCTION()
418 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
419 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
430 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
514 bucket = php_stream_bucket_new(stream, pbuffer, buffer_len, 1, php_stream_is_persistent(stream)); in PHP_FUNCTION()
516 if (bucket == NULL) { in PHP_FUNCTION()
520 ZVAL_RES(&zbucket, zend_register_resource(bucket, le_bucket)); in PHP_FUNCTION()
525 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
526 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()