Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93529 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40161 invoked from network); 25 May 2016 20:26:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2016 20:26:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.88 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.88 mx107.easyname.com Received: from [77.244.243.88] ([77.244.243.88:45066] helo=mx203.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/AB-14311-C5A06475 for ; Wed, 25 May 2016 16:26:04 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1b5fNR-0007Ck-NA; Wed, 25 May 2016 20:26:01 +0000 Reply-To: internals@lists.php.net References: <80.72.63510.DAFA5475@pb1.pair.com> <68fd73e7-ad19-3758-7b7a-6013cc26385f@gmail.com> <11.87.14311.EC5E5475@pb1.pair.com> <46620281-18af-094f-d484-8fc69bd7dc11@gmail.com> <557bd7db-b400-73b8-835d-6a03396f7fb5@fleshgrinder.com> To: Benoit Schildknecht , internals@lists.php.net Message-ID: <25ad6058-7d12-903d-4068-2db48f17a1ec@fleshgrinder.com> Date: Wed, 25 May 2016 22:25:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MtA6EeN9UFFMDFWROw98Vcx882PP2hCKR" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: php@fleshgrinder.com (Fleshgrinder) --MtA6EeN9UFFMDFWROw98Vcx882PP2hCKR Content-Type: multipart/mixed; boundary="gT6Mpb8wlpsJnQ1rFl3JEJ9Kg53X1RiUg" From: Fleshgrinder Reply-To: internals@lists.php.net To: Benoit Schildknecht , internals@lists.php.net Message-ID: <25ad6058-7d12-903d-4068-2db48f17a1ec@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties References: <80.72.63510.DAFA5475@pb1.pair.com> <68fd73e7-ad19-3758-7b7a-6013cc26385f@gmail.com> <11.87.14311.EC5E5475@pb1.pair.com> <46620281-18af-094f-d484-8fc69bd7dc11@gmail.com> <557bd7db-b400-73b8-835d-6a03396f7fb5@fleshgrinder.com> In-Reply-To: --gT6Mpb8wlpsJnQ1rFl3JEJ9Kg53X1RiUg Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 5/25/2016 10:23 PM, Benoit Schildknecht wrote: > Le Wed, 25 May 2016 21:40:28 +0200, Fleshgrinder = > a =C3=A9crit: >=20 >> and unset simply because the property is not >> explicitly assigned null by unset, it is being undefined. >=20 >=20 > Because null !=3D=3D undefined. That's why you get an error after an > unset($this->var), and you don't get one after $this->var =3D null; . > "$var =3D null;" and "unset($var)" are totally different, it has been l= ike > that for years. If you want to change this behavior, propose an RFC, an= d > make it approve. But meanwhile, you'll have to keep this in mind : > "null" is a value. While "unset" does not affect a value, it deletes th= e > variable, it deletes any references of the variable it targets, the > variable doesn't exist anymore. With unset, the variable is dead. With > null, it has amnesia. I can't find any better analogy. >=20 Which is exactly what I wrote and think is correct. ;) --=20 Richard "Fleshgrinder" Fussenegger --gT6Mpb8wlpsJnQ1rFl3JEJ9Kg53X1RiUg-- --MtA6EeN9UFFMDFWROw98Vcx882PP2hCKR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXRgpQAAoJEOKkKcqFPVVr0b8P/3WdESkXbSzg3uHM9yir23f5 Q217t902WM34Rc8gmGH01L234YXPsfTk1o/lkESUB2+tnRpiR6FQe0+hPyNFlr9r XnlG3u//nBVGqvgwOz/tSwD/0IctezfcUZfTlyhC9ijFGUTPefEujmlNOxUA7Z91 pSv1mMpWJ97czLs7f9x7OmgZLwwhoTcdyGIWbjSc1YTSbESxuKtuGodopEJKGQ1O Y79U2YUTcxkl7DLoZ8v038tVsfo4x1IH0EAhvt0mZB7wkLqzc6xG9b+iPOmx1VYS YMChCAsyP/JRa5y3lRuUDTS86ophsKsopmTgi/5U0cbBK14FN9CsIlEhM0cM/omZ BVi+PoC5YuBTrasHrKmuP3g/HEXH/2lmCPizz8YwFecW5sqiVt1N9wR1CIZFj6T9 rFPkxHDW8lGhpBEYHdLbaQYjISqJfqhrCRQaeI4y8CylCUPql7lknJ2eH+t4ZoZp dy1H4aPEQQtHlyagYPf+Nlyj8HQEY28QXz0XilsLFQzwgFxF1igTDLKgs6WymoDR oFQjyyJirSvFCSCuZP8hU7VPozy6R+gRplapu6MaYtJP6mRcFZlohM37C39h047S dkdSP6RJuFVRnNZDm+uhaoH5rIUlRisOsh+GLDpVhDEkoiZD/dVLrwCqQOqZTbog m9euzinlkHxbWaJlq0nc =O+d7 -----END PGP SIGNATURE----- --MtA6EeN9UFFMDFWROw98Vcx882PP2hCKR--