1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

Remove always-false intern checks (#18433)

This commit is contained in:
Niels Dossche
2025-04-26 14:11:37 +02:00
committed by GitHub
parent 61d15870aa
commit 4f10973853
2 changed files with 0 additions and 7 deletions
-4
View File
@@ -170,10 +170,6 @@ static void php_snmp_object_free_storage(zend_object *object) /* {{{ */
{
php_snmp_object *intern = php_snmp_fetch_object(object);
if (!intern) {
return;
}
snmp_session_free(&(intern->session));
zend_object_std_dtor(&intern->zo);
-3
View File
@@ -1047,9 +1047,6 @@ static void php_zip_object_free_storage(zend_object *object) /* {{{ */
ze_zip_object * intern = php_zip_fetch_object(object);
int i;
if (!intern) {
return;
}
if (intern->za) {
if (zip_close(intern->za) != 0) {
php_error_docref(NULL, E_WARNING, "Cannot destroy the zip context: %s", zip_strerror(intern->za));