Fix libuuid build source (#411)

* fix libuuid build source

* fix libuuid build source tests
This commit is contained in:
Jerry Ma
2024-04-12 21:05:51 +08:00
committed by GitHub
parent 847535721c
commit 4cb1764439
5 changed files with 38 additions and 21 deletions

View File

@@ -13,14 +13,14 @@ declare(strict_types=1);
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'dba',
'Windows' => 'mbstring,pdo_sqlite,mbregex,dba',
'Linux', 'Darwin' => 'uuid',
'Windows' => 'mbstring,pdo_sqlite,mbregex',
};
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
$with_libs = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'qdbm',
'Windows' => 'qdbm',
'Linux', 'Darwin' => '',
'Windows' => '',
};
// Please change your test base combination. We recommend testing with `common`.

View File

@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);
assert(function_exists('uuid_create'));
assert(strlen(uuid_create(0)) === 36);