Refactor ConfigValidator, make it more strict

This commit is contained in:
crazywhalecc
2025-10-20 13:41:02 +08:00
parent 605c06f85c
commit e2fd3e18d6
5 changed files with 401 additions and 221 deletions

View File

@@ -453,7 +453,7 @@
"type": "external",
"source": "msgpack",
"arg-type-unix": "with",
"arg-type-win": "enable",
"arg-type-windows": "enable",
"ext-depends": [
"session"
]
@@ -885,6 +885,22 @@
"mysqli"
]
},
"swoole-hook-odbc": {
"support": {
"Windows": "no",
"BSD": "wip"
},
"notes": true,
"type": "addon",
"arg-type": "none",
"ext-depends": [
"pdo",
"swoole"
],
"lib-depends": [
"unixodbc"
]
},
"swoole-hook-pgsql": {
"support": {
"Windows": "no",
@@ -914,22 +930,6 @@
"swoole"
]
},
"swoole-hook-odbc": {
"support": {
"Windows": "no",
"BSD": "wip"
},
"notes": true,
"type": "addon",
"arg-type": "none",
"ext-depends": [
"pdo",
"swoole"
],
"lib-depends": [
"unixodbc"
]
},
"swow": {
"support": {
"BSD": "wip"

View File

@@ -203,7 +203,6 @@
"libcares"
],
"cpp-library": true,
"provide-pre-built": true,
"frameworks": [
"CoreFoundation"
]
@@ -560,6 +559,21 @@
"zstd"
]
},
"liburing": {
"source": "liburing",
"pkg-configs": [
"liburing",
"liburing-ffi"
],
"static-libs-linux": [
"liburing.a",
"liburing-ffi.a"
],
"headers-linux": [
"liburing/",
"liburing.h"
]
},
"libuuid": {
"source": "libuuid",
"static-libs-unix": [
@@ -940,20 +954,5 @@
"zstd.h",
"zstd_errors.h"
]
},
"liburing": {
"source": "liburing",
"pkg-configs": [
"liburing",
"liburing-ffi"
],
"static-libs-linux": [
"liburing.a",
"liburing-ffi.a"
],
"headers-linux": [
"liburing/",
"liburing.h"
]
}
}

View File

@@ -669,6 +669,15 @@
"path": "LICENSE.md"
}
},
"liburing": {
"type": "ghtar",
"repo": "axboe/liburing",
"prefer-stable": true,
"license": {
"type": "file",
"path": "COPYING"
}
},
"libuuid": {
"type": "git",
"url": "https://github.com/static-php/libuuid.git",
@@ -990,7 +999,6 @@
},
"snappy": {
"type": "git",
"repo": "google/snappy",
"rev": "main",
"url": "https://github.com/google/snappy",
"license": {
@@ -1154,14 +1162,5 @@
"type": "file",
"path": "LICENSE"
}
},
"liburing": {
"type": "ghtar",
"repo": "axboe/liburing",
"prefer-stable": true,
"license": {
"type": "file",
"path": "COPYING"
}
}
}