Skip to content

Commit d89add1

Browse files
authored
V3 check/3 (#1158)
2 parents a36129c + df26b93 commit d89add1

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎config/pkg/ext/builtin-extensions.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ ext-password-argon2:
186186
type: php-extension
187187
depends:
188188
- libargon2
189+
suggests:
189190
- ext-openssl
190191
php-extension:
191192
os:

‎config/pkg/lib/gettext-win.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ gettext-win:
44
source:
55
type: git
66
url: 'https://github.com/winlibs/gettext.git'
7-
rev: master
7+
rev: '0.18'
88
static-libs@windows:
99
- libintl_a.lib

‎src/Package/Target/curl.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function buildWin(LibraryPackage $lib): void
3939
->optionalPackage('zstd', ...cmake_boolean_args('CURL_ZSTD'))
4040
->optionalPackage('brotli', ...cmake_boolean_args('CURL_BROTLI'))
4141
->addConfigureArgs(
42-
'-DBUILD_CURL_EXE=OFF',
42+
'-DBUILD_CURL_EXE=ON',
4343
'-DZSTD_LIBRARY=zstd_static.lib',
4444
'-DBUILD_TESTING=OFF',
4545
'-DBUILD_EXAMPLES=OFF',
@@ -81,6 +81,7 @@ public function build(LibraryPackage $lib): void
8181
->addConfigureArgs(
8282
'-DBUILD_CURL_EXE=ON',
8383
'-DBUILD_LIBCURL_DOCS=OFF',
84+
'-DOPENSSL_ROOT_DIR=' . BUILD_ROOT_PATH,
8485
)
8586
->build();
8687

@@ -92,6 +93,9 @@ public function build(LibraryPackage $lib): void
9293
if (str_contains(FileSystem::readFile($pc_path), '-lgssapi_krb5')) {
9394
FileSystem::replaceFileRegex($pc_path, '/-lcom_err$/m', '-lcom_err -lkrb5support');
9495
}
96+
// FindThreads can put '-lpthread' into INTERFACE_LINK_LIBRARIES; curl's pc generator
97+
// prepends '-l' to each entry, producing '-l-lpthread'. Strip the extra '-l'.
98+
FileSystem::replaceFileRegex($pc_path, '/-l(-l\S+)/', '$1');
9599
shell()->cd("{$lib->getLibDir()}/cmake/CURL/")
96100
->exec("sed -ie 's|\"/lib/libcurl.a\"|\"{$lib->getLibDir()}/libcurl.a\"|g' CURLTargets-release.cmake");
97101

‎src/StaticPHP/Util/FileSystem.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ public static function scanDirFiles(string $dir, bool $recursive = true, bool|st
244244
*/
245245
public static function getClassesPsr4(string $dir, string $base_namespace, mixed $rule = null, bool|string $return_path_value = false, bool $auto_require = false): array
246246
{
247+
$base_namespace = rtrim($base_namespace, '\\');
247248
$classes = [];
248249
$files = FileSystem::scanDirFiles($dir, true, true);
249250
if ($files === false) {

0 commit comments

Comments
 (0)