[packages/php/PHP_7_1] type fix for platforms on which type of zend_long is different than type of time_t

atler atler at pld-linux.org
Sat Jan 25 03:37:16 CET 2025


commit 140caccf8e8e22a779fddb57b8760808684eb772
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jan 23 20:17:53 2025 +0100

    type fix for platforms on which type of zend_long is different than type of time_t

 types.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/types.patch b/types.patch
index 51a9dcd..ae8918b 100644
--- a/types.patch
+++ b/types.patch
@@ -119,3 +119,19 @@
  {
  	*gc_data = NULL;
  	*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 @@
+ 			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;
++					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/6f09f2e918484e21decfe1c8583f5a0ffab40951



More information about the pld-cvs-commit mailing list