Re: [RFC][Vote] Typed Properties
| From: | Lester Caine | Date: | Wed, 25 May 2016 22:13:26 +0000 |
| Subject: | Re: [RFC][Vote] Typed Properties | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93544@lists.php.net to get a copy of this message | ||
On 25/05/16 22:52, Thomas Bley wrote:
> var_dump($a->z); // 42
> var_dump(isset($a->z)); // true
> unset($a->z);
$a->z does not exist at this point
> var_dump(isset($a->z)); // false
We know that isset is broken so if $a->z is null we also get false ...
perhaps the 'fault' that isset does not actually work properly is
biting? But since $a->z does not exist false avoids an error.
> var_dump($a->z); // 0 + notice
The notice should be 'variable does not exist' as at this point $a->z
has no context at all!
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk