Skip to content

Commit 94c8bb7

Browse files
authored
Merge pull request #10 from shivammathur/ext-xz
Fix windows workflow
2 parents 172f346 + 9874226 commit 94c8bb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG_ENABLE('xz', 'xz support', 'no');
44

55
if (PHP_XZ != 'no') {
66
// liblzma is included with the ext-zip dependencies in php8
7-
if(CHECK_LIB('liblzma_a.lib', 'xz', PHP_PHP_BUILD + '\\lib') &&
7+
if(CHECK_LIB('liblzma_a.lib;liblzma.lib', 'xz', PHP_PHP_BUILD + '\\lib') &&
88
CHECK_HEADER_ADD_INCLUDE('lzma.h', 'CFLAGS_XZ', PHP_PHP_BUILD + '\\include')
99
){
1010
AC_DEFINE('HAVE_XZ', 1, 'xz support enabled');

tests/xzstream.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $opts = [
2323
]
2424
];
2525
$ctx = stream_context_create($opts);
26-
copy(PHP_BINARY, "compress.lzma://$tmp1");
26+
copy(PHP_BINARY, "compress.lzma://$tmp1", $ctx);
2727
$len1 = filesize($tmp1);
2828
var_dump($len1 > 0);
2929
var_dump($len1 <= $len0);

0 commit comments

Comments
 (0)