ID:               37259
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tbarstow at workflowbydesign dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Feature/Change Request
-Operating System: Mac OS X
+Operating System: *
-PHP Version:      5.1.2
+PHP Version:      5.*
 New Comment:

We cannot change this. We could only probably add something more, a new
additionaƶ inteface that can only deal with references. ...We coukd but
we don't.


Previous Comments:
------------------------------------------------------------------------

[2006-05-01 14:49:34] tbarstow at workflowbydesign dot com

Description:
------------
This is related to the issue with ArrayAccess not being able to return
by reference. See:
http://bugs.php.net/bug.php?id=32983
http://bugs.php.net/bug.php?id=34783

However this is NOT a re-post of the above referenced bug.  Rather, I
am reporting a bug that relates to the error message that results from
this situation.

The error message reads: "Objects used as arrays in post/pre
increment/decrement must return values by reference". 

Two issues with this:

1. It's not possible to do.  "Objects used as arrays" cannot return
values by reference, as noted in the bugs referenced above.
2. This doesn't only happen in post/pre increment/decrement cases. 
There are a couple of examples in the bugs linked above; others exist
as well (consider passing $array_access_object['foo'] to a function
that takes a reference, for example).





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37259&edit=1

Reply via email to