File php-ext-snappy-1.patch of Package php7-snappy

diff -uNr php-ext-snappy-0.1.0.orig/snappy.c php-ext-snappy-0.1.0/snappy.c
--- php-ext-snappy-0.1.0.orig/snappy.c	2013-09-10 05:26:06.000000000 +0200
+++ php-ext-snappy-0.1.0/snappy.c	2016-01-06 09:24:34.646113344 +0100
@@ -97,7 +97,7 @@
 
     if (snappy_compress(Z_STRVAL_P(data), Z_STRLEN_P(data),
                         output, &output_len) == SNAPPY_OK) {
-        RETVAL_STRINGL(output, output_len, 1);
+        RETVAL_STRINGL(output, output_len);
     } else {
         RETVAL_FALSE;
     }
@@ -136,7 +136,7 @@
 
     if (snappy_uncompress(Z_STRVAL_P(data), Z_STRLEN_P(data), 
                           output, &output_len) == SNAPPY_OK) {
-        RETVAL_STRINGL(output, output_len, 1);
+        RETVAL_STRINGL(output, output_len);
     } else {
         zend_error(E_WARNING, "snappy_uncompress : data error");
         RETVAL_FALSE;