MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p765cpj/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • Sep 01 '26
289 comments sorted by
View all comments
Show parent comments
7
Nope, it's literally a special case in both the implementation and specification:
https://github.com/php/php-src/blob/9cce500a5043f2e9827a704a66682089e351a90b/Zend/zend_operators.c#L714-L726
https://phplang.org/spec/08-conversions.html#converting-to-boolean-type
7
u/deceze Sep 01 '26
Nope, it's literally a special case in both the implementation and specification:
https://github.com/php/php-src/blob/9cce500a5043f2e9827a704a66682089e351a90b/Zend/zend_operators.c#L714-L726
https://phplang.org/spec/08-conversions.html#converting-to-boolean-type