[packages/php/PHP_7_0] Rel 31; fix uninitialised ibase timestamp in types.patch

arekm arekm at pld-linux.org
Thu Oct 22 12:17:30 CEST 2026


commit 559c2b7325cf2ee8fa55be972c65d2756fbbcaf8
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 22 11:24:54 2026 +0200

    Rel 31; fix uninitialised ibase timestamp in types.patch

 php.spec    | 2 +-
 types.patch | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/php.spec b/php.spec
index b444f13..77ba92f 100644
--- a/php.spec
+++ b/php.spec
@@ -150,7 +150,7 @@ Summary(ru.UTF-8):	PHP Версии 7 - язык препроцессирова
 Summary(uk.UTF-8):	PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері
 Name:		%{orgname}%{php_suffix}
 Version:	7.0.33
-Release:	30
+Release:	31
 Epoch:		4
 # All files licensed under PHP version 3.01, except
 # Zend is licensed under Zend
diff --git a/types.patch b/types.patch
index 1102916..6c87a99 100644
--- a/types.patch
+++ b/types.patch
@@ -121,17 +121,16 @@
  	*gc_data_count = 0;
 --- php-7.3.33/ext/interbase/ibase_query.c.orig	2021-11-16 12:18:38.000000000 +0100
 +++ php-7.3.33/ext/interbase/ibase_query.c	2025-01-23 20:08:11.773054372 +0100
-@@ -695,10 +695,12 @@
+@@ -695,10 +695,11 @@
  			case SQL_TYPE_TIME:
  				if (Z_TYPE_P(b_var) == IS_LONG) {
  					struct tm *res;
 -					res = php_gmtime_r(&Z_LVAL_P(b_var), &t);
-+					time_t ts;
++					time_t ts = Z_LVAL_P(b_var);
 +					res = php_gmtime_r(&ts, &t);
  					if (!res) {
  						return FAILURE;
  					}
-+					Z_LVAL_P(b_var) = (zend_long) ts;
  				} else {
  #ifdef HAVE_STRPTIME
  					char *format = INI_STR("ibase.timestampformat");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/559c2b7325cf2ee8fa55be972c65d2756fbbcaf8



More information about the pld-cvs-commit mailing list