HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //usr/local/lib/php/tests/HTML_Template_Flexy/tests/test_function.html.phpt
--TEST--
Template Test: function.html
--FILE--
<?php
require_once 'testsuite.php';
compilefile('function.html');

--EXPECTF--
===Compiling function.html===



===Compiled file: function.html===
<?php 
function _html_template_flexy_compiler_flexy_flexy_test1($t,$this) {
?>this is the contents of test1<?php 
}
?>
<H1>Example of function block definitions</H1>


<?php if ($t->false)  {?><table>
<tr><td>
    
</td></tr>
</table><?php }?>
<table>
<tr><td>
   <?php if (function_exists('_html_template_flexy_compiler_flexy_flexy_test1'))  _html_template_flexy_compiler_flexy_flexy_test1($t,$this);?>
   <?php if (function_exists('_html_template_flexy_compiler_flexy_flexy_'.$t->a_value)) call_user_func_array('_html_template_flexy_compiler_flexy_flexy_'.$t->a_value,array($t,$this));?>
</td></tr>
</table>

    

===With data file: function.html===
<H1>Example of function block definitions</H1>


<table>
<tr><td>
   this is the contents of test1   </td></tr>
</table>