1 --- linux-gpib-4.0.3/language/php/gpib.c.orig 2016-04-09 15:33:09.000000000 +0200
2 +++ linux-gpib-4.0.3/language/php/gpib.c 2016-07-14 16:47:47.929605503 +0200
5 #include "ext/standard/info.h"
7 +#if PHP_MAJOR_VERSION >= 7
8 +#define PZVAL_IS_REF(pz) Z_ISREF_P(pz)
11 /* ---- macros for declarations -------------------------- */
13 #define FUN_ACCESSOR(functionName) \
18 +#if PHP_MAJOR_VERSION >= 7
19 + RETURN_STRING((char*)gpib_error_string(n));
21 RETURN_STRING((char*)gpib_error_string(n), 1);
30 +#if PHP_MAJOR_VERSION >= 7