Skip to content

Commit 0c7d85d

Browse files
committed
ext/ldap: Use EMPTY_SWITCH_DEFAULT_CASE();
1 parent cf043af commit 0c7d85d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ext/ldap/ldap.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,12 +2680,7 @@ PHP_FUNCTION(ldap_modify_batch)
26802680
case LDAP_MODIFY_BATCH_REPLACE:
26812681
ldap_operation = LDAP_MOD_REPLACE;
26822682
break;
2683-
default:
2684-
zend_throw_error(NULL, "Unknown and uncaught modification type.");
2685-
RETVAL_FALSE;
2686-
efree(ldap_mods[i]);
2687-
num_mods = i;
2688-
goto cleanup;
2683+
EMPTY_SWITCH_DEFAULT_CASE();
26892684
}
26902685

26912686
/* fill in the basic info */

0 commit comments

Comments
 (0)