[php-src] master: Adjust XtOffsetOf() to offsetof() for master

Ilija Tovilo <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Ilija Tovilo (iluuu1994)
Date: 2026-07-15T20:53:05+02:00

Commit: https://github.com/php/php-src/commit/070f8b21861f37c23f6d910f9f797d939ead3949
Raw diff: https://github.com/php/php-src/commit/070f8b21861f37c23f6d910f9f797d939ead3949.diff

Adjust XtOffsetOf() to offsetof() for master

Changed paths:
  M  ext/date/php_date.c


Diff:

diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index ba660650e256..0e24e4450641 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -5174,7 +5174,7 @@ static void date_period_reset(php_period_obj *period_obj)
 	if (period_obj->interval) {
 		timelib_rel_time_dtor(period_obj->interval);
 	}
-	memset(period_obj, 0, XtOffsetOf(php_period_obj, std));
+	memset(period_obj, 0, offsetof(php_period_obj, std));
 }
 
 /* {{{ Creates new DatePeriod object. */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.