diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-06-11 07:09:30 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-06-11 07:09:30 +0200 |
commit | 2bd1461ad0f61a96794239fa96a4b74ef307a8a2 (patch) | |
tree | 0b481547d6a648a1ee1da78dcf49f0ee13038f10 /yar-php71.patch | |
parent | fb079bfd00074c89f9b30acf032005a0b36dbab7 (diff) |
php-pecl-yar: add patch for PHP 7.1
Diffstat (limited to 'yar-php71.patch')
-rw-r--r-- | yar-php71.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/yar-php71.patch b/yar-php71.patch new file mode 100644 index 0000000..af4ccd7 --- /dev/null +++ b/yar-php71.patch @@ -0,0 +1,25 @@ +From 603689fe268d9178c4180b46f676b7d5abef696e Mon Sep 17 00:00:00 2001 +From: Remi Collet <fedora@famillecollet.com> +Date: Sat, 11 Jun 2016 07:05:55 +0200 +Subject: [PATCH] fix for PHP 7.1 + +--- + yar_server.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/yar_server.c b/yar_server.c +index d46bd72..fac921b 100644 +--- a/yar_server.c ++++ b/yar_server.c +@@ -219,7 +219,11 @@ static char * php_yar_get_function_declaration(zend_function *fptr) /* {{{ */ { + zval zv, zv_copy; + int use_copy; + ZVAL_DUP(&zv, RT_CONSTANT(&fptr->op_array, precv->op2)); ++#if PHP_VERSION_ID < 70100 + zval_update_constant_ex(&zv, 1, fptr->common.scope); ++#else ++ zval_update_constant_ex(&zv, fptr->common.scope); ++#endif + if (Z_TYPE(zv) == IS_TRUE) { + memcpy(offset, "true", 4); + offset += 4; |