Lines Matching refs:bucket

68 	php_stream_bucket *bucket = (php_stream_bucket *)res->ptr;  in ZEND_RSRC_DTOR_FUNC()  local
69 if (bucket) { in ZEND_RSRC_DTOR_FUNC()
70 php_stream_bucket_delref(bucket); in ZEND_RSRC_DTOR_FUNC()
71 bucket = NULL; in ZEND_RSRC_DTOR_FUNC()
205 php_stream_bucket *bucket; in userfilter_filter() local
208 while ((bucket = buckets_in->head)) { in userfilter_filter()
210 php_stream_bucket_unlink(bucket); in userfilter_filter()
211 php_stream_bucket_delref(bucket); in userfilter_filter()
215 php_stream_bucket *bucket = buckets_out->head; in userfilter_filter() local
216 while (bucket != NULL) { in userfilter_filter()
217 php_stream_bucket_unlink(bucket); in userfilter_filter()
218 php_stream_bucket_delref(bucket); in userfilter_filter()
219 bucket = buckets_out->head; in userfilter_filter()
378 php_stream_bucket *bucket; in PHP_FUNCTION() local
391 if (brigade->head && (bucket = php_stream_bucket_make_writeable(brigade->head))) { in PHP_FUNCTION()
392 ZVAL_RES(&zbucket, zend_register_resource(bucket, le_bucket)); in PHP_FUNCTION()
397 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
398 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
409 php_stream_bucket *bucket; in php_stream_bucket_attach() local
426 …if ((bucket = (php_stream_bucket *)zend_fetch_resource_ex(pzbucket, PHP_STREAM_BUCKET_RES_NAME, le… in php_stream_bucket_attach()
431 if (!bucket->own_buf) { in php_stream_bucket_attach()
432 bucket = php_stream_bucket_make_writeable(bucket); in php_stream_bucket_attach()
434 if (bucket->buflen != Z_STRLEN_P(pzdata)) { in php_stream_bucket_attach()
435 bucket->buf = perealloc(bucket->buf, Z_STRLEN_P(pzdata), bucket->is_persistent); in php_stream_bucket_attach()
436 bucket->buflen = Z_STRLEN_P(pzdata); in php_stream_bucket_attach()
438 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach()
442 php_stream_bucket_append(brigade, bucket); in php_stream_bucket_attach()
444 php_stream_bucket_prepend(brigade, bucket); in php_stream_bucket_attach()
449 if (bucket->refcount == 1) { in php_stream_bucket_attach()
450 bucket->refcount++; in php_stream_bucket_attach()
477 php_stream_bucket *bucket; in PHP_FUNCTION() local
489 bucket = php_stream_bucket_new(stream, pbuffer, buffer_len, 1, php_stream_is_persistent(stream)); in PHP_FUNCTION()
491 ZVAL_RES(&zbucket, zend_register_resource(bucket, le_bucket)); in PHP_FUNCTION()
496 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
497 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()