File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1592,16 +1592,13 @@ void pdo_stmt_free_default_fetch_mode(pdo_stmt_t *stmt)
1592
1592
{
1593
1593
enum pdo_fetch_type default_fetch_mode = stmt -> default_fetch_type & ~PDO_FETCH_FLAGS ;
1594
1594
if (default_fetch_mode == PDO_FETCH_INTO ) {
1595
- // Assert that we have an object to fetch into?
1596
- if (stmt -> fetch .into ) {
1597
- OBJ_RELEASE (stmt -> fetch .into );
1598
- }
1595
+ ZEND_ASSERT (stmt -> fetch .into != NULL );
1596
+ OBJ_RELEASE (stmt -> fetch .into );
1599
1597
} else if (default_fetch_mode == PDO_FETCH_CLASS ) {
1600
1598
if (stmt -> fetch .cls .ctor_args != NULL ) {
1601
1599
zend_hash_release (stmt -> fetch .cls .ctor_args );
1602
1600
}
1603
1601
}
1604
- /* Zero out fetch field */
1605
1602
memset (& stmt -> fetch , 0 , sizeof (stmt -> fetch ));
1606
1603
}
1607
1604
@@ -2046,7 +2043,6 @@ zend_object *pdo_dbstmt_new(zend_class_entry *ce)
2046
2043
pdo_stmt_t * stmt ;
2047
2044
2048
2045
stmt = zend_object_alloc (sizeof (pdo_stmt_t ), ce );
2049
-
2050
2046
zend_object_std_init (& stmt -> std , ce );
2051
2047
object_properties_init (& stmt -> std , ce );
2052
2048
You can’t perform that action at this time.
0 commit comments