Skip to content

Commit 4f10973

Browse files
authored
Remove always-false intern checks (#18433)
1 parent 61d1587 commit 4f10973

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

ext/snmp/snmp.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ static void php_snmp_object_free_storage(zend_object *object) /* {{{ */
170170
{
171171
php_snmp_object *intern = php_snmp_fetch_object(object);
172172

173-
if (!intern) {
174-
return;
175-
}
176-
177173
snmp_session_free(&(intern->session));
178174

179175
zend_object_std_dtor(&intern->zo);

ext/zip/php_zip.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,9 +1047,6 @@ static void php_zip_object_free_storage(zend_object *object) /* {{{ */
10471047
ze_zip_object * intern = php_zip_fetch_object(object);
10481048
int i;
10491049

1050-
if (!intern) {
1051-
return;
1052-
}
10531050
if (intern->za) {
10541051
if (zip_close(intern->za) != 0) {
10551052
php_error_docref(NULL, E_WARNING, "Cannot destroy the zip context: %s", zip_strerror(intern->za));

0 commit comments

Comments
 (0)