# [RFC] [VOTE] Deprecate type juggling to and from bool type within the function type juggling context

- Thread: https://externals.io/message/128161
- Original archive: https://news-web.php.net/php.internals/128161
- Started by Gina P. Banyard on 2025-07-21T12:21:49+00:00
- Messages: 3
- 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

---

## #128161 — Gina P. Banyard — 2025-07-21T12:21:49+00:00

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

Hello internals,

I have started the vote for my "Deprecate type juggling to and from bool type within the function type juggling context" RFC:
https://wiki.php.net/rfc/deprecate-function-bool-type-juggling

It will run for two weeks and close on Monday the 4th of August.

Best regards,

Gina P. Banyard

---

## #128218 — Bob Weinand — 2025-07-24T17:47:04+00:00

URL: https://externals.io/message/128161#128218 · In reply to: #128161

Hey,


> Hello internals,
>
> I have started the vote for my "Deprecate type juggling to and from bool type within the function type juggling context" RFC:
> https://wiki.php.net/rfc/deprecate-function-bool-type-juggling
>
> It will run for two weeks and close on Monday the 4th of August.
>
> Best regards,
>
> Gina P. Banyard

I'm voting no on this RFC as I think the rejected feature described in 
the RFC is the way to go (relaxing true and false to allow type coercions).

For me, the main purpose of the singleton true/false boolean types is 
rather being explicit on what's actually stored/returned, rather than 
not being assignable an integer (e.g. 0 for false).

Bob

---

## #128384 — Gina P. Banyard — 2025-08-04T12:05:35+00:00

URL: https://externals.io/message/128161#128384 · In reply to: #128161

> Hello internals,
> 
> I have started the vote for my "Deprecate type juggling to and from bool type within the function type juggling context" RFC:
> https://wiki.php.net/rfc/deprecate-function-bool-type-juggling
> 
> It will run for two weeks and close on Monday the 4th of August.

Hello internals,

I just closed the vote, and the RFC has been declined, with 10 votes in favour and 11 against. (47.6%)

Thank you to everyone that has voted and participated in the discussions.

Best regards,

Gina P. Banyard
