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.
This commit is contained in:
Niels Dossche 2024-09-02 21:46:05 +02:00 committed by GitHub
parent faa1904fb6
commit 98dc77f660
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);