projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- separate http_boundary()
[m6w6/ext-http]
/
http_api.c
diff --git
a/http_api.c
b/http_api.c
index 61de3e81f1448d352c367d8596a145b1f597215e..aa48e65d520ddc2535dfc0b33a96515971220cbf 100644
(file)
--- 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, ...)
{
/* {{{ void http_error(long, long, char*) */
void _http_error_ex(long type TSRMLS_DC, long code, const char *format, ...)
{