summaryrefslogtreecommitdiffstats
path: root/0002-fix-implicit-int.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-07-02 12:10:43 +0200
committerRemi Collet <remi@php.net>2024-07-02 12:10:43 +0200
commit3308ce4948b49c94ab32af062b7fb70ceb6cd806 (patch)
treeef5ff1bd47e87cdf2c232e6f11d93289bdee690a /0002-fix-implicit-int.patch
dup v5
Diffstat (limited to '0002-fix-implicit-int.patch')
-rw-r--r--0002-fix-implicit-int.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/0002-fix-implicit-int.patch b/0002-fix-implicit-int.patch
new file mode 100644
index 0000000..728187d
--- /dev/null
+++ b/0002-fix-implicit-int.patch
@@ -0,0 +1,27 @@
+From c127c74ba12ffb62afa653710c574f28e469e7a7 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 6 Jun 2024 10:16:26 +0200
+Subject: [PATCH 2/2] fix implicit int
+
+---
+ ext-src/php_swoole_call_stack.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ext-src/php_swoole_call_stack.h b/ext-src/php_swoole_call_stack.h
+index 8c89f8305..639a303d7 100644
+--- a/ext-src/php_swoole_call_stack.h
++++ b/ext-src/php_swoole_call_stack.h
+@@ -18,8 +18,8 @@
+
+ #ifdef ZEND_CHECK_STACK_LIMIT
+ #define HOOK_PHP_CALL_STACK(callback) \
+- auto __stack_limit = EG(stack_limit); \
+- auto __stack_base = EG(stack_base); \
++ void *__stack_limit = EG(stack_limit); \
++ void *__stack_base = EG(stack_base); \
+ EG(stack_base) = (void *) 0; \
+ EG(stack_limit) = (void *) 0; \
+ callback EG(stack_limit) = __stack_limit; \
+--
+2.45.1
+