[packages/php/PHP_7_0] more missing includes and type fixes
atler
atler at pld-linux.org
Sat Jan 25 15:05:30 CET 2025
commit b7b6fffd5d133ded18587c8699ccbfa112c8106a
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Jan 25 01:40:48 2025 +0100
more missing includes and type fixes
includes.patch | 10 ++++++++++
types.patch | 14 ++++++++++++++
2 files changed, 24 insertions(+)
---
diff --git a/includes.patch b/includes.patch
index 829e361..a32a4f8 100644
--- a/includes.patch
+++ b/includes.patch
@@ -8,3 +8,13 @@
#include "ext/standard/info.h"
#include "lsapilib.h"
+--- php-7.1.33/ext/zip/lib/mkstemp.c.orig 2019-10-22 18:59:49.000000000 +0200
++++ php-7.1.33/ext/zip/lib/mkstemp.c 2025-01-25 00:53:13.113061891 +0100
+@@ -43,6 +43,7 @@
+ #endif
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <unistd.h>
+
+ #ifndef O_BINARY
+ #define O_BINARY 0
diff --git a/types.patch b/types.patch
index ae8918b..1102916 100644
--- a/types.patch
+++ b/types.patch
@@ -135,3 +135,17 @@
} else {
#ifdef HAVE_STRPTIME
char *format = INI_STR("ibase.timestampformat");
+--- php-7.0.33/sapi/litespeed/lsapilib.c.orig 2025-01-25 12:05:15.151455149 +0100
++++ php-7.0.33/sapi/litespeed/lsapilib.c 2025-01-25 12:11:23.153577903 +0100
+@@ -2654,9 +2654,10 @@
+ return;
+ }
+ s_pid_dump_debug_info = fork();
++ time_t t = tmCur;
+
+ fprintf( stderr, "[%s] Possible runaway process, PPID: %d, PID: %d, reqCount: %d, process time: %ld, checkpoint time: %ld, start time: %ld\n",
+- ctime(&tmCur), getpid(), pStatus->m_pid, pStatus->m_iReqCounter,
++ ctime(&t), getpid(), pStatus->m_pid, pStatus->m_iReqCounter,
+ tmCur - pStatus->m_tmReqBegin, tmCur - pStatus->m_tmLastCheckPoint, tmCur - pStatus->m_tmStart );
+ snprintf( achCmd, 1024, "gdb --batch -ex \"attach %d\" -ex \"set height 0\" -ex \"bt\" >&2;PATH=$PATH:/usr/sbin lsof -p %d >&2", pStatus->m_pid, pStatus->m_pid );
+ if ( system( achCmd ) == -1 )
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/08c47c435bbc377aa1f55ad3740ea1393df474b4
More information about the pld-cvs-commit
mailing list