php-src/ext/hash
Nikita Popov d59aac58b3 Report errors from stream read and write operations
The php_stream_read() and php_stream_write() functions now return
an ssize_t value, with negative results indicating failure. Functions
like fread() and fwrite() will return false in that case.

As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams
should not be regarded as error conditions, and be reported as
successful zero-length reads/writes instead. The handling of EINTR
remains unclear and is internally inconsistent (e.g. some code-paths
will automatically retry on EINTR, while some won't).

I'm landing this now to make sure the stream wrapper ops API changes
make it into 7.4 -- however, if the user-facing changes turn out to
be problematic we have the option of clamping negative returns to
zero in php_stream_read() and php_stream_write() to restore the
old behavior in a relatively non-intrusive manner.
2019-07-22 17:17:28 +02:00
..
sha3 Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
tests Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols 2019-06-27 23:25:33 +02:00
bench.php Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
config.m4 Remove conditional calls of always available macros 2019-07-14 22:24:21 +02:00
config.w32 Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols 2019-06-27 23:25:33 +02:00
CREDITS
hash_adler32.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_crc32.c Fix #71890: Add support for crc32c Castagnoli's polynomial. 2019-03-11 10:19:35 +01:00
hash_fnv.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_gost.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_haval.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_joaat.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_md.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_ripemd.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_sha3.c Merge branch 'PHP-7.3' into PHP-7.4 2019-04-06 19:06:21 -07:00
hash_sha.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_snefru.c Fix shift UB in hash_snefru 2019-06-19 15:55:56 +02:00
hash_tiger.c Remove local variables 2019-02-03 21:03:00 +01:00
hash_whirlpool.c Remove local variables 2019-02-03 21:03:00 +01:00
hash.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
php_hash_adler32.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_crc32_tables.h Fix #71890: Add support for crc32c Castagnoli's polynomial. 2019-03-11 10:19:35 +01:00
php_hash_crc32.h Fix #71890: Add support for crc32c Castagnoli's polynomial. 2019-03-11 10:19:35 +01:00
php_hash_fnv.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_gost_tables.h Replace usage of php_hash_uint32 and php_hash_uint64 with uint32_t and uint64_t. 2016-02-04 11:57:41 +01:00
php_hash_gost.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_haval.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_hash_joaat.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_md.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_hash_ripemd.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_hash_sha3.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_sha.h Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
php_hash_snefru_tables.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_snefru.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_tiger_tables.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_tiger.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_whirlpool_tables.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash_whirlpool.h Remove local variables 2019-02-03 21:03:00 +01:00
php_hash.h Fix #71890: Add support for crc32c Castagnoli's polynomial. 2019-03-11 10:19:35 +01:00