From 98dc77f660484d9d0e4f1437e9898a81017311c0 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:46:05 +0200 Subject: [PATCH] Fix GH-15690: ext-dba failures on 32-bit (#15691) The wrong type was used in the size calculation. On 64-bit this coincidentally doesn't cause issues, but on 32-bit it does because of different padding vs 64-bit resulting in a different size. Regressed in 2097237. --- ext/dba/dba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dba/dba.c b/ext/dba/dba.c index c0baf2780dc..503c41be8db 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -309,7 +309,7 @@ static void dba_close_connection(dba_connection *connection) static zend_object *dba_connection_create_object(zend_class_entry *class_type) { - dba_connection *intern = zend_object_alloc(sizeof(dba_info), class_type); + dba_connection *intern = zend_object_alloc(sizeof(dba_connection), class_type); zend_object_std_init(&intern->std, class_type); object_properties_init(&intern->std, class_type);