#50211 [Opn->Csd]: (ArrayAccess::offsetSet) $object[] works too

From: Date: Mon, 23 Nov 2009 20:58:11 +0000
Subject: #50211 [Opn->Csd]: (ArrayAccess::offsetSet) $object[] works too
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3321@lists.php.net to get a copy of this message
ID: 50211 Updated by: bjori@php.net Reported By: uramihsayibok at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-11-23 20:57:47] svn@php.net Automatic comment from SVN on behalf of bjori Revision: http://svn.php.net/viewvc/?view=revision&revision=291226 Log: Fix bug#50211 (ArrayAccess::offsetSet) $object[] works too) ------------------------------------------------------------------------ [2009-11-18 00:16:48] uramihsayibok at gmail dot com Description: ------------ The documentation for ArrayAccess::offsetSet should mention that $offset will be null when the array offset isn't given, as in with $object = new Class_Implementing_ArrayAccess(); $object[] = $value; Yes, this is a partial duplicate of bug 49807. It was closed by marking $offset as "mixed" but an explicit note on how (and when) $offset could be null would be nice - it's special behavior. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50211&edit=1

« previous php.doc.bugs (#3321) next »