0001-ZEND_ACC_ALLOW_STATIC-ZEND_ACC_STATIC-for-static-met.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From fd775cedbb97b56f0d1b098a41519f4477f450c7 Mon Sep 17 00:00:00 2001
  2. From: cdosoftei <ciprian.dosoftei@gmail.com>
  3. Date: Mon, 10 Aug 2020 15:37:52 -0400
  4. Subject: [PATCH] ZEND_ACC_ALLOW_STATIC -> ZEND_ACC_STATIC for static method
  5. [Hervé: Taken from https://github.com/laruence/php-lua/pull/47 to fix
  6. PHP8 compatibility.]
  7. Signed-off-by: Herve Codina <herve.codina@bootlin.com>
  8. ---
  9. lua.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/lua.c b/lua.c
  12. index b05f4ef..f2648ac 100755
  13. --- a/lua.c
  14. +++ b/lua.c
  15. @@ -822,7 +822,7 @@ zend_function_entry lua_class_methods[] = {
  16. PHP_ME(lua, include, arginfo_lua_include, ZEND_ACC_PUBLIC)
  17. PHP_ME(lua, call, arginfo_lua_call, ZEND_ACC_PUBLIC)
  18. PHP_ME(lua, assign, arginfo_lua_assign, ZEND_ACC_PUBLIC)
  19. - PHP_ME(lua, getVersion, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_ALLOW_STATIC)
  20. + PHP_ME(lua, getVersion, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
  21. PHP_ME(lua, registerCallback, arginfo_lua_register, ZEND_ACC_PUBLIC)
  22. PHP_MALIAS(lua, __call, call, arginfo_lua_call, ZEND_ACC_PUBLIC)
  23. PHP_FE_END
  24. --
  25. 2.31.1