@@ -1454,12 +1454,16 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
1454
1454
case 9 :
1455
1455
case 8 :
1456
1456
ldap_deref = deref ;
1457
+ fallthrough ;
1457
1458
case 7 :
1458
1459
ldap_timelimit = timelimit ;
1460
+ fallthrough ;
1459
1461
case 6 :
1460
1462
ldap_sizelimit = sizelimit ;
1463
+ fallthrough ;
1461
1464
case 5 :
1462
1465
ldap_attrsonly = attrsonly ;
1466
+ fallthrough ;
1463
1467
case 4 :
1464
1468
num_attribs = zend_hash_num_elements (Z_ARRVAL_P (attrs ));
1465
1469
ldap_attrs = safe_emalloc ((num_attribs + 1 ), sizeof (char * ), 0 );
@@ -1479,6 +1483,7 @@ static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
1479
1483
ldap_attrs [i ] = Z_STRVAL_P (attr );
1480
1484
}
1481
1485
ldap_attrs [num_attribs ] = NULL ;
1486
+ fallthrough ;
1482
1487
default :
1483
1488
break ;
1484
1489
}
@@ -3331,6 +3336,7 @@ PHP_FUNCTION(ldap_parse_result)
3331
3336
switch (myargcount ) {
3332
3337
case 7 :
3333
3338
_php_ldap_controls_to_array (ld -> link , lserverctrls , serverctrls , 0 );
3339
+ fallthrough ;
3334
3340
case 6 :
3335
3341
referrals = zend_try_array_init (referrals );
3336
3342
if (!referrals ) {
@@ -3344,13 +3350,15 @@ PHP_FUNCTION(ldap_parse_result)
3344
3350
}
3345
3351
ldap_memvfree ((void * * )lreferrals );
3346
3352
}
3353
+ fallthrough ;
3347
3354
case 5 :
3348
3355
if (lerrmsg == NULL ) {
3349
3356
ZEND_TRY_ASSIGN_REF_EMPTY_STRING (errmsg );
3350
3357
} else {
3351
3358
ZEND_TRY_ASSIGN_REF_STRING (errmsg , lerrmsg );
3352
3359
ldap_memfree (lerrmsg );
3353
3360
}
3361
+ fallthrough ;
3354
3362
case 4 :
3355
3363
if (lmatcheddn == NULL ) {
3356
3364
ZEND_TRY_ASSIGN_REF_EMPTY_STRING (matcheddn );
@@ -3406,6 +3414,7 @@ PHP_FUNCTION(ldap_parse_exop)
3406
3414
ZEND_TRY_ASSIGN_REF_STRING (retoid , lretoid );
3407
3415
ldap_memfree (lretoid );
3408
3416
}
3417
+ fallthrough ;
3409
3418
case 3 :
3410
3419
/* use arg #3 as the data returned by the server */
3411
3420
if (lretdata == NULL ) {
0 commit comments