Skip to content

Commit 98dc77f

Browse files
authored
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.
1 parent faa1904 commit 98dc77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dba/dba.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static void dba_close_connection(dba_connection *connection)
309309

310310
static zend_object *dba_connection_create_object(zend_class_entry *class_type)
311311
{
312-
dba_connection *intern = zend_object_alloc(sizeof(dba_info), class_type);
312+
dba_connection *intern = zend_object_alloc(sizeof(dba_connection), class_type);
313313

314314
zend_object_std_init(&intern->std, class_type);
315315
object_properties_init(&intern->std, class_type);

0 commit comments

Comments
 (0)