projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
release 4.2.1
[m6w6/ext-http]
/
src
/
php_http_etag.c
diff --git
a/src/php_http_etag.c
b/src/php_http_etag.c
index eb3b5e35b11527f30a84b305c4308b17354c3b7b..7e309f22636bdd4db813919da9bd669dc0e218e5 100644
(file)
--- a/
src/php_http_etag.c
+++ b/
src/php_http_etag.c
@@
-17,6
+17,12
@@
#include "ext/standard/sha1.h"
#include "ext/standard/md5.h"
#include "ext/standard/sha1.h"
#include "ext/standard/md5.h"
+#if PHP_VERSION_ID >= 80100
+# define HASH_INIT_ARGS ,NULL
+#else
+# define HASH_INIT_ARGS
+#endif
+
php_http_etag_t *php_http_etag_init(const char *mode)
{
php_http_etag_t *e;
php_http_etag_t *php_http_etag_init(const char *mode)
{
php_http_etag_t *e;
@@
-31,7
+37,7
@@
php_http_etag_t *php_http_etag_init(const char *mode)
e = emalloc(sizeof(*e) + eho->context_size - 1);
e->ops = eho;
e = emalloc(sizeof(*e) + eho->context_size - 1);
e->ops = eho;
- eho->hash_init(e->ctx);
+ eho->hash_init(e->ctx
HASH_INIT_ARGS
);
return e;
}
return e;
}
@@
-64,4
+70,3
@@
size_t php_http_etag_update(php_http_etag_t *e, const char *data_ptr, size_t dat
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
-