pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/php81/patches



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat May 21 16:01:40 UTC 2022

Added Files:
        pkgsrc/lang/php81/patches: patch-main_streams_streams.c

Log Message:
lang/php80: forgot to add a file

Oops, forgot to add a patch file.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/php81/patches/patch-main_streams_streams.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/php81/patches/patch-main_streams_streams.c
diff -u /dev/null pkgsrc/lang/php81/patches/patch-main_streams_streams.c:1.1
--- /dev/null   Sat May 21 16:01:40 2022
+++ pkgsrc/lang/php81/patches/patch-main_streams_streams.c      Sat May 21 16:01:40 2022
@@ -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) {



Home | Main Index | Thread Index | Old Index