ID: 38069 Updated by: [EMAIL PROTECTED] Reported By: cslush at gmail dot com -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: Linux Kernel 2.6.15 PHP Version: 5.1.4 New Comment:
This is what latest CVS says on your code: Fatal error: Cannot use array returned from C::__get('array') in write context and this is expected. Previous Comments: ------------------------------------------------------------------------ [2006-07-11 17:20:30] cslush at gmail dot com Description: ------------ I am getting unexpected behavior from the __get and __set methods. I am assigning an array via __set and then, by accessing it with __get, I am unable to correctly pull the last key of the array. end($this->array); $last_key = key($this->array); Reproduce code: --------------- http://rafb.net/paste/results/z7GNVF49.html Expected result: ---------------- 123456789Last Actual result: -------------- Last123456789 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38069&edit=1