Skip to content

Commit d3727f4

Browse files
authored
ext/pgsql: Remove unreachable break (#21482)
1 parent a6a7b39 commit d3727f4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ext/pgsql/pgsql.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,18 +1814,14 @@ static void php_pgsql_get_field_info(INTERNAL_FUNCTION_PARAMETERS, int entry_typ
18141814
switch (entry_type) {
18151815
case PHP_PG_FIELD_NAME:
18161816
RETURN_STRING(PQfname(pgsql_result, (int)field));
1817-
break;
18181817
case PHP_PG_FIELD_SIZE:
18191818
RETURN_LONG(PQfsize(pgsql_result, (int)field));
1820-
break;
18211819
case PHP_PG_FIELD_TYPE:
18221820
RETURN_STR(get_field_name(pg_result->conn, PQftype(pgsql_result, (int)field)));
1823-
break;
18241821
case PHP_PG_FIELD_TYPE_OID:
18251822

18261823
oid = PQftype(pgsql_result, (int)field);
18271824
PGSQL_RETURN_OID(oid);
1828-
break;
18291825
EMPTY_SWITCH_DEFAULT_CASE()
18301826
}
18311827
}
@@ -4545,8 +4541,8 @@ PHP_FUNCTION(pg_flush)
45454541
}
45464542

45474543
switch (ret) {
4548-
case 0: RETURN_TRUE; break;
4549-
case 1: RETURN_LONG(0); break;
4544+
case 0: RETURN_TRUE;
4545+
case 1: RETURN_LONG(0);
45504546
default: RETURN_FALSE;
45514547
}
45524548
}

0 commit comments

Comments
 (0)