ID: 24187
Updated by: [EMAIL PROTECTED]
Reported By: terjeto at stud dot ntnu dot no
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: Red Hat 9.0
PHP Version: 5CVS-2003-06-14 (dev)
New Comment:
Please try to produce the reproducing code for the problem that shown
it is an engine problem and not the Smarty code problem.
Previous Comments:
------------------------------------------------------------------------
[2003-06-15 06:47:45] terjeto at stud dot ntnu dot no
Cant seem to manage to reproduce the error.. The
problem wasnt what I first thought thou. After several
trials I get the same error with :: and ->. My old code
still produces the same error. Seems to have something
to do with Smarty. When I load Smarty and run the
display( 'index.tpl' ) it causes the "page could not
load" error. I sometimes get a lot of warnings, like :
fetch() could not find index.tpl etc. And it doesnt
produce any files in the template_c folder, so
something is wrong...
------------------------------------------------------------------------
[2003-06-15 03:08:41] [EMAIL PROTECTED]
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
------------------------------------------------------------------------
[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