[php-src] Issue #8437: WeakMap::offsetExists return false if value is null
| From: | nikic | Date: | Tue, 26 Apr 2022 08:05:44 +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-241241@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8437
Comment Author: nikic
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.