ID: 24187 User updated by: terjeto at stud dot ntnu dot no Reported By: terjeto at stud dot ntnu dot no -Status: Open +Status: Bogus Bug Type: Zend Engine 2 problem Operating System: Red Hat 9.0 PHP Version: 5CVS-2003-06-14 (dev) New Comment:
worked with return $this::array; .... :) Previous Comments: ------------------------------------------------------------------------ [2003-06-14 18:03:32] terjeto at stud dot ntnu dot no Description: ------------ A function get_array() inside the class Foo tries to return an array stored inside the class. This worked fine in PHP4, but in the latest PHP5 the webpage wont load. Reproduce code: --------------- class Foo { var $array = array(); function get_array() { return $this->array; } } Expected result: ---------------- expected to see the page or at least an error message of what the problem was. Actual result: -------------- the page didnt load at all. i got "page could not load" every time. if i commented the "return ..." and replaced it with "return true;" or anything else it worked, but when i tried to return an array the webpage wouldnt load at all ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24187&edit=1