]> git.pld-linux.org Git - packages/linux-gpib.git/blobdiff - linux-gpib-php7.patch
- up to 4.0.4rc3
[packages/linux-gpib.git] / linux-gpib-php7.patch
index 045fbf0e429dcdf6a804def1c9df0f7b98740f6c..0d161b8c02f59696a264826f9e946d665edc0a20 100644 (file)
  #endif
  
 @@ -550,7 +558,11 @@
-         memset(p,0,len+1);
+       memset(p,0,len+1);
        r=ibrd(n,p,len);
-         p[ibcnt]='\0';
+       p[ibcnt]='\0';
 +#if PHP_MAJOR_VERSION >= 7
-+        ZVAL_STRING(z,p);
++      ZVAL_STRING(z,p);
 +#else
-         ZVAL_STRING(z,p,1);
+       ZVAL_STRING(z,p,1);
 +#endif
-       free(p);
+       efree(p);
        RETURN_LONG(r);
  }
This page took 0.041516 seconds and 4 git commands to generate.