On 26/05/2016 11:16, Fleshgrinder wrote:
  $o = (object) ['x' => null];
  var_dump(isset($a->x));              // false
  var_dump(property_exists($a, 'x'));  // true

Apart from a typo in your example (you change from $o to $a), this is already the current behaviour, and always has been: https://3v4l.org/NeqGl

isset() is really very simple: if the thing your accessing would give you the value null, it returns false, otherwise it returns true.

Regards,
--
Rowan Collins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to