Add patch files for php 5.6 installation.
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,9 +1,13 @@
|
|||||||
# - common
|
# - common
|
||||||
*.log
|
*.log
|
||||||
*.swp
|
*.swp
|
||||||
|
*.bz2
|
||||||
conf/*.conf
|
conf/*.conf
|
||||||
|
|
||||||
/BAK/*
|
/BAK/*
|
||||||
php-*
|
php-*
|
||||||
log_*
|
log_*
|
||||||
!php-5.6-libssl-1.1*
|
!php-5.6-libssl-1.1*
|
||||||
|
|
||||||
|
# Aber Patch-Dateien erlauben
|
||||||
|
!php-*.patch
|
||||||
|
|||||||
21
php-5.6-cast.patch
Normal file
21
php-5.6-cast.patch
Normal file
@@ -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
|
||||||
|
|
||||||
10
php-5.6-libmagic.patch
Normal file
10
php-5.6-libmagic.patch
Normal file
@@ -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;
|
||||||
11
php-5.6-mbfl_encoding.patch
Normal file
11
php-5.6-mbfl_encoding.patch
Normal file
@@ -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
|
||||||
|
};
|
||||||
11
php-5.6-mbfl_put_invalid_char.patch
Normal file
11
php-5.6-mbfl_put_invalid_char.patch
Normal file
@@ -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);
|
||||||
|
|
||||||
10
php-5.6-mkstemp.patch
Normal file
10
php-5.6-mkstemp.patch
Normal file
@@ -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 <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
#ifndef O_BINARY
|
||||||
|
#define O_BINARY 0
|
||||||
11
php-5.6-reentrancy.patch
Normal file
11
php-5.6-reentrancy.patch
Normal file
@@ -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;
|
||||||
20
php-5.6-session.patch
Normal file
20
php-5.6-session.patch
Normal file
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
11
php-5.6-wddx.patch
Normal file
11
php-5.6-wddx.patch
Normal file
@@ -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;
|
||||||
27
php-5.6-zlib-1.2.11.patch
Normal file
27
php-5.6-zlib-1.2.11.patch
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user