xref: /OK3568_Linux_fs/buildroot/package/php-gnupg/0001-Remove-inlining-_phpc_res_close.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom 887b0899d7e7423baec691255c2d8b56bb348ecd Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Jakub Zelenka <bukka@php.net>
3*4882a593SmuzhiyunDate: Sun, 14 Mar 2021 18:52:21 +0000
4*4882a593SmuzhiyunSubject: [PATCH] Remove inlining _phpc_res_close
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun[Retrieved from:
7*4882a593Smuzhiyunhttps://github.com/bukka/phpc/commit/887b0899d7e7423baec691255c2d8b56bb348ecd]
8*4882a593SmuzhiyunSigned-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
9*4882a593Smuzhiyun---
10*4882a593Smuzhiyun phpc.h | 8 --------
11*4882a593Smuzhiyun 1 file changed, 8 deletions(-)
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundiff --git a/phpc/phpc.h b/phpc/phpc.h
14*4882a593Smuzhiyunindex dc5887e..9206105 100644
15*4882a593Smuzhiyun--- a/phpc/phpc.h
16*4882a593Smuzhiyun+++ b/phpc/phpc.h
17*4882a593Smuzhiyun@@ -945,16 +945,8 @@ typedef zend_resource * phpc_res_value_t;
18*4882a593Smuzhiyun 	zend_fetch_resource2(Z_RES_P(_pz_res), _res_type_name, _res_type_1, _res_type_2)
19*4882a593Smuzhiyun #define PHPC_RES_DELETE(_pz_res) \
20*4882a593Smuzhiyun 	zend_list_delete(Z_RES_P(_pz_res))
21*4882a593Smuzhiyun-#if PHP_MAJOR_VERSION < 8
22*4882a593Smuzhiyun #define PHPC_RES_CLOSE(_pz_res) \
23*4882a593Smuzhiyun 	zend_list_close(Z_RES_P(_pz_res))
24*4882a593Smuzhiyun-#else
25*4882a593Smuzhiyun-inline int _phpc_res_close(zval *zres) {
26*4882a593Smuzhiyun-	zend_list_close(Z_RES_P(zres));
27*4882a593Smuzhiyun-	return SUCCESS;
28*4882a593Smuzhiyun-}
29*4882a593Smuzhiyun-#define PHPC_RES_CLOSE _phpc_res_close
30*4882a593Smuzhiyun-#endif
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun /* resource to zval */
33*4882a593Smuzhiyun #define PHPC_RES_PZVAL(_res, _pzv) \
34