Article View: comp.os.vms
Article #130Re: PHP "Features"
From: Arne Vajhøj
Date: Fri, 30 Oct 2026 19:01
Date: Fri, 30 Oct 2026 19:01
38 lines
2477 bytes
2477 bytes
On 10/27/2026 3:08 PM, Simon Clubley wrote: > On 2026-10-24, Lawrence DÿOliveiro <ldo@nz.invalid> wrote: >> On Sat, 24 Oct 2026 11:59:30 -0400, Arne Vajhøj wrote: >>> Always === is a good workaround. >> >> A workaround is still a workaround. The weak typing that led to its >> necessity is not ?good?. > > I disagree with you on many things, but agree with you on that one. > > You should get strict equality by default with "==" and have to use > "===" to get loose equality. I think the natural association is that === means "more equal" than ==, so I don't think that is a good way. I would say either live with how it is (the sins of the past) or come up with a plan to drop loose equality. PHP 9.x: declare(strict_equality=1) makes == behave like === and === gives warning. PHP 10.x: == behave like === and === gives warning unless declare(strict_equality=0) PHP 11.x: == is always strict and === is gone. Arne
Technical Details
Message-ID:
<11c2ph8$h3je$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net> <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bikkl$2rllh$1@dont-email.me> <11bjcal$340l8$9@dont-email.me> <11bqsr4$1pp8h$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Arne Vajhøj <arne@vajhoej.dk> Newsgroups: comp.os.vms Subject: Re: PHP "Features" Date: Fri, 30 Oct 2026 15:01:18 -0400 Organization: A noiseless patient Spider Lines: 38 Message-ID: <11c2ph8$h3je$1@dont-email.me> References: <11bcbi1$k068$1@dont-email.me> <nk1gv8F1eecU1@mid.individual.net> <11bgih8$f7a$1@reader2.panix.com> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bikkl$2rllh$1@dont-email.me> <11bjcal$340l8$9@dont-email.me> <11bqsr4$1pp8h$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Oct 2026 19:00:57 +0000 (UTC) Injection-Info: dont-email.me; logging-data="560750"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+osymZxcho41A5p9zs0VwVkEs4UwAM8Kw="; posting-host="d7da77183d3ca5fdae496aba5520f6a7" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:mWsm93UdpWjO9UEs9xsnpQfA44k= sha256:AChkJtSnC6oIV6abSKj9JjjUIkbmQyeD3TrYwzm1+GA= sha1:qatZ2+Xx3GB8QhAvy8bBczn89Xo= sha256:cwTNichxn7LF4B2IfuZWouXS8u/DFabGYLbx3tdbIas= In-Reply-To: <11bqsr4$1pp8h$2@dont-email.me> Content-Language: en-US