Skip to content

Commit

Permalink
Add libxml extension wrapper for composer compatibility (#463)
Browse files Browse the repository at this point in the history
* Add libxml extension wrapper for compatibility

* Add tests
  • Loading branch information
crazywhalecc authored May 29, 2024
1 parent 968b3ac commit af8204f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions config/ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,16 @@
"openssl"
]
},
"libxml": {
"support": {
"BSD": "wip"
},
"type": "builtin",
"arg-type": "none",
"ext-depends": [
"xml"
]
},
"mbregex": {
"type": "builtin",
"arg-type": "custom",
Expand Down
6 changes: 3 additions & 3 deletions src/globals/test-extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

// --------------------------------- edit area ---------------------------------

$zts = true;
$zts = false;

// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'parallel',
'Windows' => 'mbstring,pdo_sqlite,mbregex,parallel',
'Linux', 'Darwin' => 'libxml',
'Windows' => 'mbstring,pdo_sqlite,mbregex,libxml',
};

// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
Expand Down

0 comments on commit af8204f

Please sign in to comment.