diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 8b7b62a7154..86881d1cc40 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -2535,6 +2535,8 @@ static zend_result php_cli_server_recv_event_read_request(php_cli_server *server return SUCCESS; EMPTY_SWITCH_DEFAULT_CASE(); } + /* Under ASAN the compiler somehow doesn't realise that the switch block always returns */ + return FAILURE; } /* }}} */ static zend_result php_cli_server_send_event(php_cli_server *server, php_cli_server_client *client) /* {{{ */