[packages/php/PHP_7_3] type fix for platforms on which type of zend_long is different than type of time_t
atler
atler at pld-linux.org
Thu Jan 23 20:32:58 CET 2025
commit f0a3209aa29ec3c1d752a7590bd6e05ba6b928f9
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/f0a3209aa29ec3c1d752a7590bd6e05ba6b928f9
More information about the pld-cvs-commit
mailing list