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

atler atler at pld-linux.org
Fri Jan 24 21:17:25 CET 2025


commit 77414f125fbb699669832948baa30376d075d268
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/ea527344ad1d621544ff9b4c1e42ef1383ce56f2



More information about the pld-cvs-commit mailing list