0001-Remove-inlining-_phpc_res_close.patch 1.0 KB

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