From d554d91ce70c9397f4d700955fd9c70e578d362c Mon Sep 17 00:00:00 2001 From: Symeon Charalabides Date: Tue, 21 Apr 2020 01:44:57 +0200 Subject: [PATCH] Ensure hash_update_stream() always returns the same hash when $length = 0 --- .../tests/hash_update_stream_basic_001.phpt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ext/hash/tests/hash_update_stream_basic_001.phpt diff --git a/ext/hash/tests/hash_update_stream_basic_001.phpt b/ext/hash/tests/hash_update_stream_basic_001.phpt new file mode 100644 index 0000000000..c145784dc9 --- /dev/null +++ b/ext/hash/tests/hash_update_stream_basic_001.phpt @@ -0,0 +1,33 @@ +--TEST-- +Ensure hash_update_stream() always returns the same hash when $length = 0 +--CREDITS-- +Symeon Charalabides - @phpdublin +--SKIPIF-- + +--FILE-- + +--EXPECT-- +d41d8cd98f00b204e9800998ecf8427e +d41d8cd98f00b204e9800998ecf8427e +d41d8cd98f00b204e9800998ecf8427e -- 2.50.1