diff --git a/.gitignore b/.gitignore index d24ba49..8dfce53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,13 @@ # - common *.log *.swp +*.bz2 conf/*.conf /BAK/* php-* log_* !php-5.6-libssl-1.1* + +# Aber Patch-Dateien erlauben +!php-*.patch diff --git a/php-5.6-cast.patch b/php-5.6-cast.patch new file mode 100644 index 0000000..15d86e3 --- /dev/null +++ b/php-5.6-cast.patch @@ -0,0 +1,21 @@ +--- main/streams/cast.c.bak 2026-03-03 21:01:49.742036485 +0100 ++++ main/streams/cast.c 2026-03-03 21:10:36.519494693 +0100 +@@ -122,11 +122,16 @@ + return 0; + } + # else +-static int stream_cookie_seeker(void *cookie, off_t position, int whence) ++static int stream_cookie_seeker(void *cookie, __off64_t *position, int whence) + { + TSRMLS_FETCH(); + +- return php_stream_seek((php_stream *)cookie, position, whence); ++ *position = php_stream_seek((php_stream *)cookie, (off_t)*position, whence); ++ ++ if (*position == -1) { ++ return -1; ++ } ++ return 0; + } + # endif + diff --git a/php-5.6-libmagic.patch b/php-5.6-libmagic.patch new file mode 100644 index 0000000..1064883 --- /dev/null +++ b/php-5.6-libmagic.patch @@ -0,0 +1,10 @@ +--- ext/fileinfo/libmagic/funcs.c.bak 2019-01-09 10:54:13.000000000 +0100 ++++ ext/fileinfo/libmagic/funcs.c 2026-03-03 18:05:18.222386324 +0100 +@@ -437,6 +437,7 @@ + return ms->o.buf == NULL ? 0 : strlen(ms->o.buf); + } + ++protected int + file_replace(struct magic_set *ms, const char *pat, const char *rep) + { + zval *patt; diff --git a/php-5.6-mbfl_encoding.patch b/php-5.6-mbfl_encoding.patch new file mode 100644 index 0000000..74b48de --- /dev/null +++ b/php-5.6-mbfl_encoding.patch @@ -0,0 +1,11 @@ +--- ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c.bak 2026-03-03 18:35:51.943832964 +0100 ++++ ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c 2026-03-03 18:36:08.663776701 +0100 +@@ -48,7 +48,7 @@ + mbfl_no_encoding_2022jp_kddi, + "ISO-2022-JP-MOBILE#KDDI", + "ISO-2022-JP", +- mbfl_encoding_2022jp_kddi_aliases, ++ &mbfl_encoding_2022jp_kddi_aliases, + NULL, + MBFL_ENCTYPE_MBCS | MBFL_ENCTYPE_SHFTCODE | MBFL_ENCTYPE_GL_UNSAFE + }; diff --git a/php-5.6-mbfl_put_invalid_char.patch b/php-5.6-mbfl_put_invalid_char.patch new file mode 100644 index 0000000..c31e3f9 --- /dev/null +++ b/php-5.6-mbfl_put_invalid_char.patch @@ -0,0 +1,11 @@ +--- ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.c.bak 2019-01-09 10:54:13.000000000 +0100 ++++ ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.c 2026-03-03 18:51:24.912344206 +0100 +@@ -36,6 +36,8 @@ + #include "mbfilter_utf8_mobile.h" + #include "mbfilter_sjis_mobile.h" + ++int mbfl_filt_put_invalid_char(int c, mbfl_convert_filter *filter); ++ + extern int mbfl_filt_ident_utf8(int c, mbfl_identify_filter *filter); + extern int mbfl_filt_conv_utf8_wchar_flush(mbfl_convert_filter *filter); + diff --git a/php-5.6-mkstemp.patch b/php-5.6-mkstemp.patch new file mode 100644 index 0000000..61e5681 --- /dev/null +++ b/php-5.6-mkstemp.patch @@ -0,0 +1,10 @@ +--- ext/zip/lib/mkstemp.c.bak 2019-01-09 10:54:13.000000000 +0100 ++++ ext/zip/lib/mkstemp.c 2026-03-03 19:48:02.521698567 +0100 +@@ -43,6 +43,7 @@ + #endif + #include + #include ++#include + + #ifndef O_BINARY + #define O_BINARY 0 diff --git a/php-5.6-reentrancy.patch b/php-5.6-reentrancy.patch new file mode 100644 index 0000000..13776b0 --- /dev/null +++ b/php-5.6-reentrancy.patch @@ -0,0 +1,11 @@ +--- main/reentrancy.c.bak 2026-03-03 20:45:56.822721495 +0100 ++++ main/reentrancy.c 2026-03-03 20:46:22.066607624 +0100 +@@ -136,7 +136,7 @@ + (HPUX returns 0 on success whereas Solaris returns non-zero) + */ + entry->d_name[0] = '\0'; +- readdir_r(dirp, entry); ++ readdir_r(dirp, entry, result); + + if (entry->d_name[0] == '\0') { + *result = NULL; diff --git a/php-5.6-session.patch b/php-5.6-session.patch new file mode 100644 index 0000000..f0e3dd2 --- /dev/null +++ b/php-5.6-session.patch @@ -0,0 +1,20 @@ +--- ext/session/session.c.bak 2019-01-09 10:54:13.000000000 +0100 ++++ ext/session/session.c 2026-03-03 19:11:58.987141885 +0100 +@@ -859,12 +859,16 @@ + PS_SERIALIZER_DECODE_FUNC(php_serialize) /* {{{ */ + { + const char *endptr = val + vallen; ++ const unsigned char *p; ++ const unsigned char *max; + zval *session_vars; + php_unserialize_data_t var_hash; + + PHP_VAR_UNSERIALIZE_INIT(var_hash); + ALLOC_INIT_ZVAL(session_vars); +- if (php_var_unserialize(&session_vars, &val, endptr, &var_hash TSRMLS_CC)) { ++ p = (const unsigned char *) val; ++ max = (const unsigned char *) endptr; ++ if (php_var_unserialize(&session_vars, &p, max, &var_hash TSRMLS_CC)) { + var_push_dtor(&var_hash, &session_vars); + } + diff --git a/php-5.6-wddx.patch b/php-5.6-wddx.patch new file mode 100644 index 0000000..c1ac421 --- /dev/null +++ b/php-5.6-wddx.patch @@ -0,0 +1,11 @@ +--- ext/wddx/wddx.c.bak 2026-03-03 19:30:38.762247898 +0100 ++++ ext/wddx/wddx.c 2026-03-03 19:26:11.139426331 +0100 +@@ -467,7 +467,7 @@ + /* OBJECTS_FIXME */ + zval **ent, *fname, **varname; + zval *retval = NULL; +- const char *key; ++ char *key; + ulong idx; + char tmp_buf[WDDX_BUF_LEN]; + HashTable *objhash, *sleephash; diff --git a/php-5.6-zlib-1.2.11.patch b/php-5.6-zlib-1.2.11.patch new file mode 100644 index 0000000..bcf0424 --- /dev/null +++ b/php-5.6-zlib-1.2.11.patch @@ -0,0 +1,27 @@ +--- ext/zlib/zlib.c.bak 2019-01-09 10:54:13.000000000 +0100 ++++ ext/zlib/zlib.c 2026-03-03 17:34:11.078246063 +0100 +@@ -1013,10 +1013,12 @@ + /* }}} */ + + /* {{{ ZEND_MODULE_GLOBALS_CTOR */ +-static ZEND_MODULE_GLOBALS_CTOR_D(zlib) ++static void php_zlib_globals_ctor(void *zlib_globals) + { +- zlib_globals->ob_gzhandler = NULL; +- zlib_globals->handler_registered = 0; ++ zend_zlib_globals *g = (zend_zlib_globals *) zlib_globals; ++ ++ g->ob_gzhandler = NULL; ++ g->handler_registered = 0; + } + /* }}} */ + +@@ -1032,7 +1034,7 @@ + PHP_MINFO(zlib), + "2.0", + PHP_MODULE_GLOBALS(zlib), +- ZEND_MODULE_GLOBALS_CTOR_N(zlib), ++ php_zlib_globals_ctor, + NULL, + NULL, + STANDARD_MODULE_PROPERTIES_EX