PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_Flexy » Bug #3946

flexy:raw invalid compile result

Details

Submitted2005-03-24 19:14 UTC
Fromzx2001 at mail dot ru
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version4.3.10
OSWINXP
Roadmaps(Not assigned)

Comments

[2005-03-24 19:14 UTC] zx2001 at mail dot ru

Description:
------------
<input type="checkbox" name="useTextarea" flexy:raw="{person.useTextarea():checked}">
compiled to:

<input type="checkbox" name="useTextarea" <?php if ($this->options['strict'] || (isset($t->person) && method_exists($t->person,'useTextarea'))) echo $this->plugin("c",$t->person->useTextarea());?>>

(note $this->plugin("c"...) => "c" instead of "checked")

<input type="checkbox" name="useTextarea" flexy:raw="{person.useTextarea:checked}">
and
{person.useTextarea():checked}

compiled properly.

Reproduce code:
---------------
<input type="checkbox" name="useTextarea" flexy:raw="{person.useTextarea():checked}">

Expected result:
----------------
<input type="checkbox" name="useTextarea" <?php if ($this->options['strict'] || (isset($t->person) && method_exists($t->person,'useTextarea'))) echo $this->plugin("checked",$t->person->useTextarea());?>>

Actual result:
--------------
<input type="checkbox" name="useTextarea" <?php if ($this->options['strict'] || (isset($t->person) && method_exists($t->person,'useTextarea'))) echo $this->plugin("c",$t->person->useTextarea());?>>

[2005-05-12 08:09 UTC] zx2001 at mail dot ru

This happens using default compiler, i.e. Flexy.