Skip to content

Commit c0d910d

Browse files
committed
Get rid of always-false intern checks
These checks are always false because we're receiving a valid zend_object.
1 parent bc74cff commit c0d910d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ext/sqlite3/sqlite3.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,10 +2163,6 @@ static void php_sqlite3_object_free_storage(zend_object *object) /* {{{ */
21632163
php_sqlite3_func *func;
21642164
php_sqlite3_collation *collation;
21652165

2166-
if (!intern) {
2167-
return;
2168-
}
2169-
21702166
/* Release function_name from authorizer */
21712167
if (ZEND_FCC_INITIALIZED(intern->authorizer_fcc)) {
21722168
zend_fcc_dtor(&intern->authorizer_fcc);
@@ -2262,10 +2258,6 @@ static void php_sqlite3_stmt_object_free_storage(zend_object *object) /* {{{ */
22622258
{
22632259
php_sqlite3_stmt *intern = php_sqlite3_stmt_from_obj(object);
22642260

2265-
if (!intern) {
2266-
return;
2267-
}
2268-
22692261
if (intern->bound_params) {
22702262
zend_hash_destroy(intern->bound_params);
22712263
FREE_HASHTABLE(intern->bound_params);
@@ -2289,10 +2281,6 @@ static void php_sqlite3_result_object_free_storage(zend_object *object) /* {{{ *
22892281
{
22902282
php_sqlite3_result *intern = php_sqlite3_result_from_obj(object);
22912283

2292-
if (!intern) {
2293-
return;
2294-
}
2295-
22962284
sqlite3result_clear_column_names_cache(intern);
22972285

22982286
if (!Z_ISNULL(intern->stmt_obj_zval)) {

0 commit comments

Comments
 (0)