1 make compressed .swf parsing possible,
2 link core php with -lz for getimagesize()
3 see also http://bugs.php.net/bug.php?id=29611
5 upstream: https://github.com/php/php-src/pull/4681
7 --- php-8.2.0RC2/ext/standard/image.c~ 2022-09-14 12:42:49.000000000 +0300
8 +++ php-8.2.0RC2/ext/standard/image.c 2022-09-29 01:20:02.719689289 +0300
11 #include "php_image.h"
13 -#if defined(HAVE_ZLIB) && !defined(COMPILE_DL_ZLIB)
14 +#if defined(HAVE_ZLIB)
22 -#if defined(HAVE_ZLIB) && !defined(COMPILE_DL_ZLIB)
23 +#if defined(HAVE_ZLIB)
24 /* {{{ php_handle_swc */
25 static struct gfxinfo *php_handle_swc(php_stream * stream)
28 result = php_handle_swf(stream);
30 case IMAGE_FILETYPE_SWC:
31 -#if defined(HAVE_ZLIB) && !defined(COMPILE_DL_ZLIB)
32 +#if defined(HAVE_ZLIB)
33 result = php_handle_swc(stream);
35 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");