projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
remodel file adding to accept paths, streams and plain data as upload files
[m6w6/ext-http]
/
php_http_etag.c
diff --git
a/php_http_etag.c
b/php_http_etag.c
index 543ce5fcf4078721953e94b8edebb7e12c737972..891717d0bf8a6e46573f83a262b1bcd2beafca44 100644
(file)
--- a/
php_http_etag.c
+++ b/
php_http_etag.c
@@
-10,9
+10,9
@@
+--------------------------------------------------------------------+
*/
+--------------------------------------------------------------------+
*/
-#include "php_http.h"
+#include "php_http
_api
.h"
-#if PHP_HTTP_HAVE_HASH
+#if
def
PHP_HTTP_HAVE_HASH
# include "php_hash.h"
#endif
# include "php_hash.h"
#endif
@@
-25,7
+25,7
@@
PHP_HTTP_API php_http_etag_t *php_http_etag_init(const char *mode TSRMLS_DC)
void *ctx;
php_http_etag_t *e;
void *ctx;
php_http_etag_t *e;
-#if PHP_HTTP_HAVE_HASH
+#if
def
PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) {
const php_hash_ops *eho = NULL;
if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) {
@@
-57,7
+57,7
@@
PHP_HTTP_API char *php_http_etag_finish(php_http_etag_t *e)
unsigned char digest[128] = {0};
char *etag = NULL;
unsigned char digest[128] = {0};
char *etag = NULL;
-#if PHP_HTTP_HAVE_HASH
+#if
def
PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
const php_hash_ops *eho = NULL;
if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
@@
-84,7
+84,7
@@
PHP_HTTP_API char *php_http_etag_finish(php_http_etag_t *e)
PHP_HTTP_API size_t php_http_etag_update(php_http_etag_t *e, const char *data_ptr, size_t data_len)
{
PHP_HTTP_API size_t php_http_etag_update(php_http_etag_t *e, const char *data_ptr, size_t data_len)
{
-#if PHP_HTTP_HAVE_HASH
+#if
def
PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
const php_hash_ops *eho = NULL;
if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {