# [VOTE] Removing Multiple Default Clauses in Switch Statements

- Thread: https://externals.io/message/77080
- Original archive: https://news-web.php.net/php.internals/77080
- Started by Levi Morrison on 2014-09-05T20:29:07+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #77080 — Levi Morrison — 2014-09-05T20:29:07+00:00

URL: https://externals.io/message/77080#77080

Dear list,

I have opened voting on this RFC:
https://wiki.php.net/rfc/switch.default.multiple#vote

The RFC is very short so I will not summarize it here.

Voting will remain open for 10 days and will close on Monday,
September the 15th.

Cheers,

Levi Morrison

---

## #77205 — Levi Morrison — 2014-09-15T02:36:18+00:00

URL: https://externals.io/message/77080#77205 · In reply to: #77080

> Dear list,
>
> I have opened voting on this RFC:
> https://wiki.php.net/rfc/switch.default.multiple#vote
>
> The RFC is very short so I will not summarize it here.
>
> Voting will remain open for 10 days and will close on Monday,
> September the 15th.

As a reminder, the vote will close sometime tomorrow evening (UTC-7).
Thank you to everyone who has voted so far.

---

## #77206 — Levi Morrison — 2014-09-15T02:37:29+00:00

URL: https://externals.io/message/77080#77206 · In reply to: #77205

> 
> > […]
>
> As a reminder, the vote will close sometime tomorrow evening (UTC-7).
> Thank you to everyone who has voted so far.

That was a bit too hast and was ambiguous; to clarify the vote closes
sometime in the evening of on Monday, September the 15th, UTC-7.

---

## #77216 — Pascal MARTIN — 2014-09-15T10:35:43+00:00

URL: https://externals.io/message/77080#77216 · In reply to: #77080

Le 05/09/2014 22:29, Levi Morrison a écrit :
>
> I have opened voting on this RFC:
> https://wiki.php.net/rfc/switch.default.multiple#vote
>
> Levi Morrison
>

Hi,

After speaking with other members of AFUP (French UG) about this RFC, we 
all agree that having two 'default' cases in a switch construct doesn't 
make much sense -- and should cause a syntax error for PHP 7.

An `E_DEPRECATED` warning for PHP 5.7 is also nice for end-users, as it 
will help anticipating the migration to PHP 7.

So, basically, +1


-- 
Pascal MARTIN
http://blog.pascal-martin.fr
@pascal_martin

---

## #77250 — Levi Morrison — 2014-09-16T14:13:05+00:00

URL: https://externals.io/message/77080#77250 · In reply to: #77080

> Dear list,
>
> I have opened voting on this RFC:
> https://wiki.php.net/rfc/switch.default.multiple#vote
>
> The RFC is very short so I will not summarize it here.
>
> Voting will remain open for 10 days and will close on Monday,
> September the 15th.
>
> Cheers,
>
> Levi Morrison

The vote passed unambiguously in favor of the RFC, 28 votes to none.
Thanks to everyone who participated.

---

## #77251 — Andrea Faulds — 2014-09-16T15:09:18+00:00

URL: https://externals.io/message/77080#77251 · In reply to: #77250

> The vote passed unambiguously in favor of the RFC, 28 votes to none.
> Thanks to everyone who participated.

Since it passed, are you going to merge into master soon?

Also, you should probably amend the master branch of the spec in turn.

--
Andrea Faulds
http://ajf.me/

---

## #77258 — Levi Morrison — 2014-09-16T16:03:55+00:00

URL: https://externals.io/message/77080#77258 · In reply to: #77251

>
> 
>
> > […]
>
> Since it passed, are you going to merge into master soon?

As I don't have Zend karma I couldn't do it myself. Joe Watkins has
since merged it into the master branch and I have updated the RFC
accordingly.

> Also, you should probably amend the master branch of the spec in turn.

I will look into this.
