#include "php_http_api.h"
-#ifdef PHP_HTTP_HAVE_HASH
-# include "php_hash.h"
+#if PHP_HTTP_HAVE_HASH
+# include "ext/hash/php_hash.h"
#endif
#include "ext/standard/crc32.h"
} else if (mode && !strcasecmp(mode, "md5")) {
PHP_MD5Init(ctx = emalloc(sizeof(PHP_MD5_CTX)));
} else {
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) {
PHP_MD5Final(digest, e->ctx);
etag = php_http_etag_digest(digest, 16);
} else {
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
if ((eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
} else if ((!strcasecmp(e->mode, "md5"))) {
PHP_MD5Update(e->ctx, (const unsigned char *) data_ptr, data_len);
} else {
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
if ((eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {