History log of /php-src/ext/hash/hash.c (Results 26 – 50 of 205)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 1e9ff7e7 22-Jun-2020 Eddie Kohler

SHA-3 Keccak_Hash: Store Keccak_HashInstance in the main context.

Previously, the Keccak_HashInstance was separately allocated.
This could cause memory leaks on errors. For instance,

SHA-3 Keccak_Hash: Store Keccak_HashInstance in the main context.

Previously, the Keccak_HashInstance was separately allocated.
This could cause memory leaks on errors. For instance,
in php_hash_do_hash_hmac, the following code cleans up after
a file read error:

if (n < 0) {
efree(context);
efree(K);
zend_string_release(digest);
RETURN_FALSE;
}

This does not call the context's hash_final operation, which
was the only way to free the separately-allocated Keccak state.

The simplest fix is simply to place the Keccak_HashInstance state
inside the context object. Then it doesn't need to be freed.

As a result, there is no need to call hash_final in the
HashContext destructor: HashContexts cannot contain internally
allocated resources.

show more ...

# 3ebce8e9 02-May-2020 Máté Kocsis

Fix UNKNOWN default values in various extensions

Closes GH-5514

# 6111d64c 16-Apr-2020 Máté Kocsis

Improve a last couple of argument error messages

Closes GH-5404

# 3fe49d81 11-Apr-2020 Máté Kocsis

Generate method entries from stubs for a couple of extensions

Closes GH-5368

# 3e5fdef9 06-Apr-2020 Nikita Popov

Inline a ZEND_NUM_ARGS() variable

# 5322de1b 04-Apr-2020 Máté Kocsis

Generate functions entries from stubs for another set of extensions

Closes GH-5351

# c5fe1a19 18-Mar-2020 Máté Kocsis

Improve error messages of ext/hash

Closes GH-5275

# d5871e26 18-Mar-2020 Máté Kocsis

Promote warnings to exceptions in ext/hash

# 80392253 13-Feb-2020 Nikita Popov

Add arginfo for HashContext::__construct()

Arginfo was already generated, just not referenced.

# 99db00b1 19-Jan-2020 Máté Kocsis

Fix #78880 Another round

# d1764ca3 15-Jan-2020 Máté Kocsis

Make error messages more consistent by fixing capitalization

Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.

# a6486088 30-Dec-2019 Nikita Popov

Switch hash() function to use fastzpp

For short inputs ZPP can be a large fraction of the hash()
execution time.

# 7c787e56 30-Dec-2019 Nikita Popov

Switch php_hash_fetch_ops() to use zend_string

This has two advantages: If the string is already lowercase, we
do not need to copy it, and it will hopefully match the interned
string

Switch php_hash_fetch_ops() to use zend_string

This has two advantages: If the string is already lowercase, we
do not need to copy it, and it will hopefully match the interned
string name of the hash, making the comparison more efficient.

show more ...

# 349a2864 01-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_throw_error()

# 9099dbd9 01-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_type_error()

# d9ac1ca8 30-Dec-2019 Máté Kocsis

Use ZEND_THROWS() during ZPP in the GD, gettext, GMP, and hash extensions

# d59bc807 18-Dec-2019 Máté Kocsis

Fix smaller issues with stubs

GH-5025

# 94938934 29-Oct-2019 Máté Kocsis

Cleanup return values when parameter parsing is unsuccessful

# 95181553 07-Oct-2019 Gabriel Caruso

Add missing zend_parse_parameters_none() checks

Closes GH-4796.

# 5d6e923d 24-Sep-2019 Gabriel Caruso

Remove mention of PHP major version in Copyright headers

Closes GH-4732.

Revision tags: php-7.4.0RC2
# ef27bd60 15-Sep-2019 Thomas Gerbet

Add stubs for ext-hash

# 7a20ba43 15-Sep-2019 Christoph M. Becker

Add missing ZPP_none()

Revision tags: php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9
# 39ab4104 22-Aug-2019 Christoph M. Becker

Remove duplicate md5/sha1 implementation

This code was actually unused since its introduction, and since at
least the md5 implementation in the core was completely overhauled,
we're

Remove duplicate md5/sha1 implementation

This code was actually unused since its introduction, and since at
least the md5 implementation in the core was completely overhauled,
we're dropping the md5 and sha1 related stuff from ext/hash.

show more ...

# 1f863399 26-Aug-2019 Mark

Warnings to Errors hash_equals

# e18bac96 26-Aug-2019 Mark

Errorfy hash_pbkdf2

123456789