diff --git a/config.w32 b/config.w32 index dd86e9e..e482009 100644 --- a/config.w32 +++ b/config.w32 @@ -4,7 +4,7 @@ ARG_ENABLE('xz', 'xz support', 'no'); if (PHP_XZ != 'no') { // liblzma is included with the ext-zip dependencies in php8 - if(CHECK_LIB('liblzma_a.lib', 'xz', PHP_PHP_BUILD + '\\lib') && + if(CHECK_LIB('liblzma_a.lib;liblzma.lib', 'xz', PHP_PHP_BUILD + '\\lib') && CHECK_HEADER_ADD_INCLUDE('lzma.h', 'CFLAGS_XZ', PHP_PHP_BUILD + '\\include') ){ AC_DEFINE('HAVE_XZ', 1, 'xz support enabled'); diff --git a/tests/xzstream.phpt b/tests/xzstream.phpt index fde66da..9d8fa99 100644 --- a/tests/xzstream.phpt +++ b/tests/xzstream.phpt @@ -23,7 +23,7 @@ $opts = [ ] ]; $ctx = stream_context_create($opts); -copy(PHP_BINARY, "compress.lzma://$tmp1"); +copy(PHP_BINARY, "compress.lzma://$tmp1", $ctx); $len1 = filesize($tmp1); var_dump($len1 > 0); var_dump($len1 <= $len0);