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