ID: 38069 User updated by: cslush at gmail dot com Reported By: cslush at gmail dot com Status: Bogus Bug Type: Class/Object related Operating System: Linux Kernel 2.6.15 PHP Version: 5.1.4 New Comment:
How is this bogus and how are you getting a fatal error? I run this code on linux and it works 100%, with the exact unexpected behavior that I mentioned originally. Am I missing something? Previous Comments: ------------------------------------------------------------------------ [2006-07-12 10:43:04] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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