X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=aa48e65d520ddc2535dfc0b33a96515971220cbf;hp=61de3e81f1448d352c367d8596a145b1f597215e;hb=22616d7660e06425a33ffefe748d4aa6067c2a43;hpb=228695ee6fcabcead88bd7bf9532dbb64f9a2707 diff --git a/http_api.c b/http_api.c index 61de3e8..aa48e65 100644 --- a/http_api.c +++ b/http_api.c @@ -94,6 +94,13 @@ char *_http_pretty_key(char *key, size_t key_len, zend_bool uctitle, zend_bool x } /* }}} */ +/* {{{ http_boundary(char *, size_t) */ +size_t _http_boundary(char *buf, size_t buf_len TSRMLS_DC) +{ + return snprintf(buf, buf_len, "%lu%0.9f", (ulong) HTTP_G->request.time, (float) php_combined_lcg(TSRMLS_C)); +} +/* }}} */ + /* {{{ void http_error(long, long, char*) */ void _http_error_ex(long type TSRMLS_DC, long code, const char *format, ...) {