diff options
author | taca <taca@pkgsrc.org> | 2022-05-21 16:01:40 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2022-05-21 16:01:40 +0000 |
commit | 8836cd2008e893c54250af1303b1b098f83c199c (patch) | |
tree | 35e528fe4a54fffeb51849967b28c7be2082a722 /lang | |
parent | f49ffbc37677d20ea815ff2de002264f8681658b (diff) | |
download | pkgsrc-8836cd2008e893c54250af1303b1b098f83c199c.tar.gz |
lang/php80: forgot to add a file
Oops, forgot to add a patch file.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php81/patches/patch-main_streams_streams.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/php81/patches/patch-main_streams_streams.c b/lang/php81/patches/patch-main_streams_streams.c new file mode 100644 index 00000000000..33465d4e68c --- /dev/null +++ b/lang/php81/patches/patch-main_streams_streams.c @@ -0,0 +1,19 @@ +$NetBSD: patch-main_streams_streams.c,v 1.1 2022/05/21 16:01:40 taca Exp $ + +* Allow copying files with size zero. + +--- main/streams/streams.c.orig 2022-05-11 01:14:18.000000000 +0000 ++++ main/streams/streams.c +@@ -1584,10 +1584,8 @@ PHPAPI int _php_stream_copy_to_stream_ex + + *len = haveread += didwrite; + +- /* we've got at least 1 byte to read +- * less than 1 is an error +- * AND read bytes match written */ +- if (mapped == 0 || mapped != didwrite) { ++ /* read bytes match written */ ++ if (mapped != didwrite) { + return FAILURE; + } + if (mapped < chunk_size) { |