From:             terjeto at stud dot ntnu dot no
Operating system: Red Hat 9.0
PHP version:      5CVS-2003-06-14 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  returning an array from a object

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 bug report at http://bugs.php.net/?id=24187&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24187&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24187&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24187&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24187&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24187&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24187&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24187&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24187&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24187&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24187&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24187&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24187&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24187&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24187&r=gnused

Reply via email to