|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-21 21:15 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 21:00:01 2025 UTC |
Description: ------------ Hi IMO offsetExists() should return true, if a key exists and false if not. But it does it inverted. Reproduce code: --------------- $array = new ArrayObject(); $array->offsetSet('key', 'value'); var_dump($array->offsetExists('key')); var_dump($array->offsetExists('nokey')); Expected result: ---------------- bool(true) bool(false) Actual result: -------------- bool(false) bool(true)