Advertisement
AlexySirov

Untitled

Jul 14th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. --- php-7.4.33-o/ext/gd/gd.c
  2. +++ php-7.4.33/ext/gd/gd.c
  3. @@ -138,9 +138,9 @@
  4. static void php_image_filter_scatter(INTERNAL_FUNCTION_PARAMETERS);
  5.  
  6. /* End Section filters declarations */
  7. -static gdImagePtr _php_image_create_from_string (zval *Data, char *tn, gdImagePtr (*ioctx_func_p)());
  8. -static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(), gdImagePtr (*ioctx_func_p)());
  9. -static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)());
  10. +static gdImagePtr _php_image_create_from_string (zval *Data, char *tn, gdImagePtr (*ioctx_func_p)(...));
  11. +static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(...), gdImagePtr (*ioctx_func_p)(...));
  12. +static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)(...));
  13. static int _php_image_type(char data[12]);
  14. static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type);
  15.  
  16. @@ -2330,7 +2330,7 @@
  17.  
  18. /* {{{ _php_image_create_from_string
  19. */
  20. -gdImagePtr _php_image_create_from_string(zval *data, char *tn, gdImagePtr (*ioctx_func_p)())
  21. +gdImagePtr _php_image_create_from_string(zval *data, char *tn, gdImagePtr (*ioctx_func_p)(...))
  22. {
  23. gdImagePtr im;
  24. gdIOCtx *io_ctx;
  25. @@ -2440,7 +2440,7 @@
  26.  
  27. /* {{{ _php_image_create_from
  28. */
  29. -static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(), gdImagePtr (*ioctx_func_p)())
  30. +static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(...), gdImagePtr (*ioctx_func_p)(...))
  31. {
  32. char *file;
  33. size_t file_len;
  34. @@ -2667,7 +2667,7 @@
  35.  
  36. /* {{{ _php_image_output
  37. */
  38. -static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)())
  39. +static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)(...))
  40. {
  41. zval *imgind;
  42. char *file = NULL;
  43. --- php-7.4.33-o/ext/gd/gd_ctx.c
  44. +++ php-7.4.33/ext/gd/gd_ctx.c
  45. @@ -77,7 +77,7 @@
  46. } /* }}} */
  47.  
  48. /* {{{ _php_image_output_ctx */
  49. -static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)())
  50. +static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)(...))
  51. {
  52. zval *imgind;
  53. char *file = NULL;
  54. --- php-7.4.33-o/ext/standard/scanf.c
  55. +++ php-7.4.33/ext/standard/scanf.c 2025-05-01 10:03:25.490467498 +0200
  56. @@ -585,7 +585,7 @@
  57. int base = 0;
  58. int underflow = 0;
  59. size_t width;
  60. - zend_long (*fn)() = NULL;
  61. + zend_long (*fn)(...) = NULL;
  62. char *ch, sch;
  63. int flags;
  64. char buf[64]; /* Temporary buffer to hold scanned number
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement