PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #2355

PHP crashes with form and many nested tags inside template

Details

Submitted2004-09-17 13:43 UTC
Frominfo at xboot dot de
StatusBogus
PackageHTML_Template_Flexy
PHP Version4.3.8
OSWindows2003
Roadmaps(Not assigned)

Comments

[2004-09-17 13:43 UTC] info at xboot dot de

Description:
------------
When I create a template with a formular and many nested tags inside the form, PHP crashes.

The following message is displayed: PHP has encountered a Stack overflow

Reproduce code:
---------------
This template doesn't work:

<html><head><title>Test</title></head>
<body>
<form name="frm" method="POST">
<table>
<tr>
<td>
<table>
<tr>
<td>
<table>
<tr>
<td>Name:</td>
<td><input type="text" name="name" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>

This works:

<html><head><title>Test</title></head>
<body>
<form name="frm" method="POST">
<table>
<tr>
<td>
<table>
<tr>
<td>Name:</td>
<td><input type="text" name="name" /></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>

Expected result:
----------------
Message: PHP has encountered a Stack overflow

[2004-09-18 12:08 UTC] info at xboot dot de

Yes.
Is this the problem? Hmm... I will try it without Zend Optimizer...

[2004-09-20 15:54 UTC] info at xboot dot de

Yes it's a problem with Zend Optimizer :-( Seems that in combination with Zend Optimizer Flexy uses (in some cases) to much stack memory. It's a pitty. Because I need Optimizer for other things - so I can't use Flexy.

Flexy is the best template engine for PHP I ever seen before. Keep on good work and Thank You very much!