# include "php_hash.h"
#endif
-#include <ext/standard/crc32.h>
-#include <ext/standard/sha1.h>
-#include <ext/standard/md5.h>
+#include "ext/standard/crc32.h"
+#include "ext/standard/sha1.h"
+#include "ext/standard/md5.h"
php_http_etag_t *php_http_etag_init(const char *mode)
{
#ifdef PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
- if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
+ if ((eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
eho->hash_final(digest, e->ctx);
etag = php_http_etag_digest(digest, eho->digest_size);
}
#ifdef PHP_HTTP_HAVE_HASH
const php_hash_ops *eho = NULL;
- if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
+ if ((eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
eho->hash_update(e->ctx, (const unsigned char *) data_ptr, data_len);
}
#endif