]> TLD Linux GIT Repositories - packages/php.git/blob - php-zlib-for-getimagesize.patch
- updated to 8.2.2
[packages/php.git] / php-zlib-for-getimagesize.patch
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
4
5 upstream: https://github.com/php/php-src/pull/4681
6
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
9 @@ -28,7 +28,7 @@
10  #endif
11  #include "php_image.h"
12  
13 -#if defined(HAVE_ZLIB) && !defined(COMPILE_DL_ZLIB)
14 +#if defined(HAVE_ZLIB)
15  #include "zlib.h"
16  #endif
17  
18 @@ -156,7 +156,7 @@
19  }
20  /* }}} */
21  
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)
26  {
27 @@ -1454,7 +1454,7 @@
28                         result = php_handle_swf(stream);
29                         break;
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);
34  #else
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");