mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 16:25:39 +08:00
Fix swoole-hook-sqlite with PHP 8.3 on macOS arm64 bug
This commit is contained in:
27
src/globals/patch/spc_fix_swoole_50513.patch
Normal file
27
src/globals/patch/spc_fix_swoole_50513.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff --git a/ext-src/php_swoole_call_stack.h b/ext-src/php_swoole_call_stack.h
|
||||
index 8c89f83..639a303 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; \
|
||||
diff --git a/thirdparty/php83/pdo_odbc/odbc_driver.c b/thirdparty/php83/pdo_odbc/odbc_driver.c
|
||||
index c83da64..a5e3a8b 100644
|
||||
--- a/thirdparty/php83/pdo_odbc/odbc_driver.c
|
||||
+++ b/thirdparty/php83/pdo_odbc/odbc_driver.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "zend_exceptions.h"
|
||||
+#include <php_odbc_utils.h>
|
||||
|
||||
static void pdo_odbc_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info) {
|
||||
pdo_odbc_db_handle *H = (pdo_odbc_db_handle *) dbh->driver_data;
|
||||
Reference in New Issue
Block a user