Skip to content

Commit 5a30d50

Browse files
authored
Merge pull request #864 from crazywhalecc/swoolehooks
swoole hooks can be compiled if pgsql/sqlite are not compiled in statically
2 parents a5351e1 + 0f00501 commit 5a30d50

29 files changed

+879
-475
lines changed

.github/workflows/ext-matrix-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- sqlsrv
6666
- ssh2
6767
- swoole
68-
- swoole,swoole-hook-pgsql,swoole-hook-mysql,swoole-hook-sqlite
68+
- swoole,swoole-hook-pgsql,swoole-hook-mysql,swoole-hook-sqlite,swoole-hook-odbc
6969
- swow
7070
- sysvmsg,sysvsem,sysvshm
7171
- tidy
@@ -82,7 +82,7 @@ jobs:
8282
- zlib
8383
- zstd
8484
php-version:
85-
- "8.5"
85+
- "8.4"
8686
operating-system:
8787
- "ubuntu-latest"
8888
#- "macos-13"

config/ext.json

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -842,14 +842,23 @@
842842
"nghttp2",
843843
"zlib"
844844
],
845+
"lib-suggests": [
846+
"zstd"
847+
],
848+
"lib-suggests-linux": [
849+
"zstd",
850+
"liburing"
851+
],
845852
"ext-depends": [
846853
"openssl",
847854
"curl"
848855
],
849856
"ext-suggests": [
857+
"sockets",
850858
"swoole-hook-pgsql",
851859
"swoole-hook-mysql",
852-
"swoole-hook-sqlite"
860+
"swoole-hook-sqlite",
861+
"swoole-hook-odbc"
853862
]
854863
},
855864
"swoole-hook-mysql": {
@@ -859,11 +868,12 @@
859868
},
860869
"notes": true,
861870
"type": "addon",
862-
"arg-type": "custom",
871+
"arg-type": "none",
863872
"ext-depends": [
864873
"mysqlnd",
865874
"pdo",
866-
"pdo_mysql"
875+
"pdo_mysql",
876+
"swoole"
867877
],
868878
"ext-suggests": [
869879
"mysqli"
@@ -877,10 +887,11 @@
877887
},
878888
"notes": true,
879889
"type": "addon",
880-
"arg-type": "custom",
890+
"arg-type": "none",
881891
"ext-depends": [
882892
"pgsql",
883-
"pdo"
893+
"pdo",
894+
"swoole"
884895
]
885896
},
886897
"swoole-hook-sqlite": {
@@ -890,10 +901,27 @@
890901
},
891902
"notes": true,
892903
"type": "addon",
893-
"arg-type": "custom",
904+
"arg-type": "none",
894905
"ext-depends": [
895906
"sqlite3",
896-
"pdo"
907+
"pdo",
908+
"swoole"
909+
]
910+
},
911+
"swoole-hook-odbc": {
912+
"support": {
913+
"Windows": "no",
914+
"BSD": "wip"
915+
},
916+
"notes": true,
917+
"type": "addon",
918+
"arg-type": "none",
919+
"ext-depends": [
920+
"pdo",
921+
"swoole"
922+
],
923+
"lib-depends": [
924+
"unixodbc"
897925
]
898926
},
899927
"swow": {

config/lib.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,5 +925,20 @@
925925
"zstd.h",
926926
"zstd_errors.h"
927927
]
928+
},
929+
"liburing": {
930+
"source": "liburing",
931+
"pkg-configs": [
932+
"liburing",
933+
"liburing-ffi"
934+
],
935+
"static-libs-linux": [
936+
"liburing.a",
937+
"liburing-ffi.a"
938+
],
939+
"headers-linux": [
940+
"liburing/",
941+
"liburing.h"
942+
]
928943
}
929944
}

config/source.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,5 +1136,14 @@
11361136
"type": "file",
11371137
"path": "LICENSE"
11381138
}
1139+
},
1140+
"liburing": {
1141+
"type": "ghtar",
1142+
"repo": "axboe/liburing",
1143+
"prefer-stable": true,
1144+
"license": {
1145+
"type": "file",
1146+
"path": "COPYING"
1147+
}
11391148
}
11401149
}

0 commit comments

Comments
 (0)