Home > Archive > PHP Smarty Templates > May 2006 > Re: [SMARTY] start-condition stack underflow
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [SMARTY] start-condition stack underflow
|
|
| messju mohr 2006-05-19, 4:11 am |
| hi,
it's an error raised by php. how does a string you pass to
token_get_all() look like to trigger this?
On Thu, May 18, 2006 at 04:12:17PM +0200, Anton Landmann wrote:
> hi guys,
>
> i have a small problem.
> i dont no how to recreate this error, because i doesnt find any rule :(
>
> here the message:
> ---
> Fatal error: start-condition stack underflow in
> /var/www/localhost/htdocs/include/lib/smarty/internals/core.write_compiled_include.php
> on line 45
> ---
> i see this error first-time in my 5 years php-coding time :)
> i'm little about this message, have anybody idea or can help me?
> is that a problem with php-code or a smarty problem, anybody know?
> and what say this error?
> i can't find any related topic in internet for that error.
>
> thanks
>
> --
> mit freundlichen Grüßen,
>
> Anton Landmann
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
| |
| Anton Landmann 2006-05-22, 4:17 am |
| i just managed to catch the content from this line! :)
ok, here we go:
.../lib/smarty/internals/core.write_compiled_include.php on line 46
i add var_dump...:
....
if ($this_varname == '_smarty') {
/* rename $this to $_smarty in the sourcecode */
var_dump($_match[4]); // <-- here
$tokens = token_get_all('<?php ' . $_match[4]);
....
and after many many spent hours, i catched content on error.
and here are the output:
------------
string(568) "$this->_tag_stack[] = array('nocache', array());
$_block_repeat=true;
smarty_block_nocache($this->_tag_stack[count($this->_tag_stack)-1][1], null,
$this, $_block_repeat);
while ($_block_repeat) {
ob_start();
echo ((is_array($_tmp=@UNIQUE_ID)) ? $this->_run_mod_handler('default',
true, $_tmp, 'none') : smarty_modifier_default($_tmp, 'none'));
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat=false;
echo smarty_block_nocache($this->_tag_stack[count($this->_tag_stack)-1][1],
$_block_content, $this, $_block_repeat);
}
array_pop($this->_tag_stack); "
<br />
<b>Fatal error</b>: start-condition stack underflow in
<b>/var/www/localhost/htdocs/cke/include/lib/smarty/internals/core.write_compiled_include.php</b>
on line <b>46</b><br />
------------
and anyway, i dont understand why this error come.
and i dont yet find any rule to reproduce this error, i just click many
hours on my website...
i try to get one more content dump.
hope it helps somebody..
--
mit freundlichen Grüßen,
Hermann Bernwald
Firma Yipix
Nassaustraße 28
65719 Hofheim / Wallau
Tel.: + 49 (0)6122 / 53 36 0
Fax: + 49 (0)6122 / 53 36 29
web: http://www.yipix.de
"messju mohr" <messju@lammfellpuschen.de> schrieb im Newsbeitrag
news:20060519070138.GA6735@dune...
| |
| Robert Amos 2006-05-22, 7:12 pm |
| Hi,
I'm unable to reproduce this error using PHP 4.4.1 or PHP 5.1.0RC1 (I
need to update, I know).
What version of PHP are you using there? I'm due for a recompile anyway :)
-bok
On 5/22/06, Anton Landmann <anton.landmann@arcor.de> wrote:
> i just managed to catch the content from this line! :)
>
> ok, here we go:
> ../lib/smarty/internals/core.write_compiled_include.php on line 46
> i add var_dump...:
> ...
> if ($this_varname =3D=3D '_smarty') {
> /* rename $this to $_smarty in the sourcecode */
> var_dump($_match[4]); // <-- here
> $tokens =3D token_get_all('<?php ' . $_match[4]);
> ...
>
> and after many many spent hours, i catched content on error.
> and here are the output:
>
> ------------
> string(568) "$this->_tag_stack[] =3D array('nocache', array());
> $_block_repeat=3Dtrue;
> smarty_block_nocache($this->_tag_stack[count($this->_tag_stack)-1][1], nu=
ll,
> $this, $_block_repeat);
> while ($_block_repeat) {
> ob_start();
> echo ((is_array($_tmp=3D@UNIQUE_ID)) ? $this->_run_mod_handler('default'=
,
> true, $_tmp, 'none') : smarty_modifier_default($_tmp, 'none'));
> $_block_content =3D ob_get_contents();
> ob_end_clean();
> $_block_repeat=3Dfalse;
> echo smarty_block_nocache($this->_tag_stack[count($this->_tag_stack)-1][=
1],
> $_block_content, $this, $_block_repeat);
> }
> array_pop($this->_tag_stack); "
>
> <br />
> <b>Fatal error</b>: start-condition stack underflow in
> <b>/var/www/localhost/htdocs/cke/include/lib/smarty/internals/core.write_=
compiled_include.php</b>
> on line <b>46</b><br />
>
> ------------
>
> and anyway, i dont understand why this error come.
> and i dont yet find any rule to reproduce this error, i just click many
> hours on my website...
> i try to get one more content dump.
>
> hope it helps somebody..
>
>
> --
> mit freundlichen Gr=FC=DFen,
>
> Hermann Bernwald
> Firma Yipix
> Nassaustra=DFe 28
> 65719 Hofheim / Wallau
> Tel.: + 49 (0)6122 / 53 36 0
> Fax: + 49 (0)6122 / 53 36 29
> web: http://www.yipix.de
>
>
> "messju mohr" <messju@lammfellpuschen.de> schrieb im Newsbeitrag
> news:20060519070138.GA6735@dune...
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--=20
Xnyo - http://xnyo.odynia.org/
| |
| Anton Landmann 2006-05-22, 7:12 pm |
| underprocessable | |
|
| hmm. Whatever is causing it, it seems to be a problem with PHP's lexer/scanner
as that error seems like some flex generated message. You can see the same
error message in many flex based projects and indeed, the PHP scanner has it:
http://gcov.php.net/PHP_4_4/lcov/bu...nner.c.gcov.php
I can only find this old bug that references the error message at bugs.php.net:
http://bugs.php.net/bug.php?id=28391
boots
--- Anton Landmann <anton.landmann@arcor.de> wrote:
> i just managed to catch the content from this line! :)
>
> ok, here we go:
> ../lib/smarty/internals/core.write_compiled_include.php on line 46
> i add var_dump...:
> ...
> if ($this_varname == '_smarty') {
> /* rename $this to $_smarty in the sourcecode */
> var_dump($_match[4]); // <-- here
> $tokens = token_get_all('<?php ' . $_match[4]);
> ...
>
> and after many many spent hours, i catched content on error.
> and here are the output:
>
> ------------
> string(568) "$this->_tag_stack[] = array('nocache', array());
> $_block_repeat=true;
> smarty_block_nocache($this->_tag_stack[count($this->_tag_stack)-1][1], null,
> $this, $_block_repeat);
> while ($_block_repeat) {
> ob_start();
> echo ((is_array($_tmp=@UNIQUE_ID)) ? $this->_run_mod_handler('default',
> true, $_tmp, 'none') : smarty_modifier_default($_tmp, 'none'));
> $_block_content = ob_get_contents();
> ob_end_clean();
> $_block_repeat=false;
> echo smarty_block_nocache($this->_tag_stack[count($this->_tag_stack)-1][1],
> $_block_content, $this, $_block_repeat);
> }
> array_pop($this->_tag_stack); "
>
> <br />
> <b>Fatal error</b>: start-condition stack underflow in
>
<b>/var/www/localhost/htdocs/cke/include/lib/smarty/internals/core.write_compiled_include.php</b>
>
> on line <b>46</b><br />
>
> ------------
>
> and anyway, i dont understand why this error come.
> and i dont yet find any rule to reproduce this error, i just click many
> hours on my website...
> i try to get one more content dump.
>
> hope it helps somebody..
>
>
> --
> mit freundlichen Gr��en,
>
> Hermann Bernwald
> Firma Yipix
> Nassaustra�e 28
> 65719 Hofheim / Wallau
> Tel.: + 49 (0)6122 / 53 36 0
> Fax: + 49 (0)6122 / 53 36 29
> web: http://www.yipix.de
>
>
> "messju mohr" <messju@lammfellpuschen.de> schrieb im Newsbeitrag
> news:20060519070138.GA6735@dune...
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
|
|
|
|