com php-src: Fix bug #73961 environmental build dependency in hash sha3 source: NEWS ext/hash/hash_sha3.c ext/hash/php_hash _sha3.h
| From: | Joe Watkins | Date: | Sat, 21 Jan 2017 07:45:28 +0000 |
| Subject: | com php-src: Fix bug #73961 environmental build dependency in hash sha3 source: NEWS ext/hash/hash_sha3.c ext/hash/php_hash _sha3.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96826@lists.php.net to get a copy of this message | ||
Commit: 1ff27053f9ffc7c68cf71b6cfb072583e2e7a610
Author: Joe Watkins <krakjoe@php.net> Sat, 21 Jan 2017 07:45:28 +0000
Parents: 3020be675aec907cc9229814b674f712b8fdd739
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1ff27053f9ffc7c68cf71b6cfb072583e2e7a610
Log:
Fix bug #73961 environmental build dependency in hash sha3 source
Bugs:
https://bugs.php.net/73961
Changed paths:
M NEWS
M ext/hash/hash_sha3.c
M ext/hash/php_hash_sha3.h
Diff:
diff --git a/NEWS b/NEWS
index baed446..74af8c5 100644
--- a/NEWS
+++ b/NEWS
@@ -22,6 +22,8 @@ PHP NEWS
- Hash:
. Added hash_hkdf() function. (Andrey Andreev)
+ . Fixed bug #73961 (environmental build dependency in hash sha3 source).
+ (krakjoe)
- Intl:
. Fix bug #73956 (Link use CC instead of CXX). (Remi)
diff --git a/ext/hash/hash_sha3.c b/ext/hash/hash_sha3.c
index d6eb1a0...d190ae4 100644
--- a/ext/hash/hash_sha3.c
+++ b/ext/hash/hash_sha3.c
@@ -16,6 +16,7 @@
+----------------------------------------------------------------------+
*/
+#include "php_hash.h"
#include "php_hash_sha3.h"
#if (defined(__APPLE__) || defined(__APPLE_CC__)) && \
diff --git a/ext/hash/php_hash_sha3.h b/ext/hash/php_hash_sha3.h
index e16ff21..8b70ef4 100644
--- a/ext/hash/php_hash_sha3.h
+++ b/ext/hash/php_hash_sha3.h
@@ -20,7 +20,6 @@
#define PHP_HASH_SHA3_H
#include "php.h"
-#include "ext/hash/php_hash.h"
typedef struct {
unsigned char state[200]; // 5 * 5 * sizeof(uint64)