Skip to content

Commit 0fad4d1

Browse files
committed
Fix ASAN build
1 parent 9601475 commit 0fad4d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sapi/cli/php_cli_server.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,6 +2535,8 @@ static zend_result php_cli_server_recv_event_read_request(php_cli_server *server
25352535
return SUCCESS;
25362536
EMPTY_SWITCH_DEFAULT_CASE();
25372537
}
2538+
/* Under ASAN the compiler somehow doesn't realise that the switch block always returns */
2539+
return FAILURE;
25382540
} /* }}} */
25392541

25402542
static zend_result php_cli_server_send_event(php_cli_server *server, php_cli_server_client *client) /* {{{ */

0 commit comments

Comments
 (0)