ID: 24187
Comment by: tony2001 at ua dot fm
Reported By: terjeto at stud dot ntnu dot no
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Red Hat 9.0
PHP Version: 5CVS-2003-06-14 (dev)
New Comment:
I think there is the problem, that was described in bug #21669.
Smarty uses $this->var = new $class; syntax, but it doesn't work with
current PHP5-CVS.
IMHO the "page could not load" message is standard MSIE message when
Apache crashes down.
Previous Comments:
------------------------------------------------------------------------
[2003-06-15 09:19:16] terjeto at stud dot ntnu dot no
ok. had to run some tests and go through the smarty
code, took some time.
but doesnt seem to be the smarty coding itself thats
the problem. and i cant reproduce a code that 'brings
forth' the problem eather.
im currently writing my code on a mac using BBedit,
storing it on my linux server (using unix line breaks).
my old code ( written on the mac, but with php 4.2.3 )
worked fine, but on php5 i get these 'random' parse
errors. when i was testing the smarty code i added some
print('test'); exit; lines to see where the problem
could be. i was then just abt line 1000. and regulary
after editing a line i for some reason got a parse
error on line 2400+. all i had to do was put a empty
line there. and thats not the first time something like
that happens, i also have had delete a line just to
write it again, exactly the same, because it caused a
parse error.
sorry that i cant reproduce any code with this
problem.. i comes and goes as it wants on my server
too..
when i was debuging the smarty code i say added a print
statement at line 1090 and got "page could not load"
error. after some trials i maybe found that line 1070
worked while 1071 didnt work (nb! without changing the
existing line breaks). if i then added a empty line at
1071 and tried again it worked, i no longer got a "page
could not load" error on that line, there where many of
those. seemed like it didnt like the existing line
break...
( this might be messy.. sorry )
------------------------------------------------------------------------
[2003-06-15 07:21:59] [EMAIL PROTECTED]
Please try to produce the reproducing code for the problem that shown
it is an engine problem and not the Smarty code problem.
------------------------------------------------------------------------
[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; .... :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24187
--
Edit this bug report at http://bugs.php.net/?id=24187&edit=1