make compressed .swf parsing possible, link core php with -lz for getimagesize() see also http://bugs.php.net/bug.php?id=29611 upstream: https://github.com/php/php-src/pull/4681 --- php-8.2.0RC2/ext/standard/image.c~ 2022-09-14 12:42:49.000000000 +0300 +++ php-8.2.0RC2/ext/standard/image.c 2022-09-29 01:20:02.719689289 +0300 @@ -28,7 +28,7 @@ #endif #include "php_image.h" -#if defined(HAVE_ZLIB) && !defined(COMPILE_DL_ZLIB) +#if defined(HAVE_ZLIB) #include "zlib.h" #endif @@ -156,7 +156,7 @@ } /* }}} */ -#if defined(HAVE_ZLIB) && !defined(COMPILE_DL_ZLIB) +#if defined(HAVE_ZLIB) /* {{{ php_handle_swc */ static struct gfxinfo *php_handle_swc(php_stream * stream) { @@ -1454,7 +1454,7 @@ result = php_handle_swf(stream); break; case IMAGE_FILETYPE_SWC: -#if defined(HAVE_ZLIB) && !defined(COMPILE_DL_ZLIB) +#if defined(HAVE_ZLIB) result = php_handle_swc(stream); #else php_error_docref(NULL, E_NOTICE, "The image is a compressed SWF file, but you do not have a static version of the zlib extension enabled");