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_raw_php.html.phpt
--TEST--
Template Test: raw_php.html
--FILE--
<?php
require_once 'testsuite.php';
compilefile('raw_php.html');
compilefile('raw_php.html',array(), array('allowPHP'=>true));
compilefile('raw_php.html',array(), array('allowPHP'=>'delete'));


--EXPECTF--
===Compiling raw_php.html===

===Compile failure==
[pear_error: message="HTML_Template_Flexy fatal error:PHP code found in script (Token)" code=-1 mode=return level=notice prefix="" info=""]


===Compiling raw_php.html===



===Compiled file: raw_php.html===

<? for($i=0;$i<10;$i++) { ?>
number: <?=$i?>
<?php } ?>

<script language="php">

for($i=0;$i<10;$i++) { 

echo "hello world\n";
}
</script>


===With data file: raw_php.html===

number: 0number: 1number: 2number: 3number: 4number: 5number: 6number: 7number: 8number: 9
hello world
hello world
hello world
hello world
hello world
hello world
hello world
hello world
hello world
hello world


===Compiling raw_php.html===



===Compiled file: raw_php.html===


number: 





===With data file: raw_php.html===


number: