[php-src] Issue #8437: WeakMap::offsetExists return false if value is null
| From: | julien-boudry | Date: | Tue, 26 Apr 2022 08:15:29 +0000 |
| Subject: | [php-src] Issue #8437: WeakMap::offsetExists return false if value is null | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241243@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8437
Comment Author: julien-boudry
> This is deliberate. Despite the confusing name, the API contract of offsetExists is that it
> must return false for null values. It is the analogue of
__isset()
> and must match isset() semantics.
Will other Spl implementations of ArrayAccess, like SplObjectStorage, will change in the future
according to this?