ID: 24187
Updated by: [EMAIL PROTECTED]
Reported By: terjeto at stud dot ntnu dot no
-Status: Bogus
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Red Hat 9.0
PHP Version: 5CVS-2003-06-14 (dev)
New Comment:
But it's still a bug. Can you provide a full script (ie, we can copy
and paste it and run it, that script includes <?php ... ?> then)?
Derick
Previous Comments:
------------------------------------------------------------------------
[2003-06-14 18:06:19] terjeto at stud dot ntnu dot no
worked with return $this::array; .... :)
------------------------------------------------------------------------
[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