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/make_tests.php
<?php


    $dh = opendir(dirname(__FILE__).'/templates/');
    $id = 0;
    while (false !== ($file = readdir($dh))) {
        if ($file{0} == '.') {
            continue;
        }
        if (is_dir(dirname(__FILE__).'/templates/'.$file)) {
            continue;
        }
        $id++;
        $test = dirname(__FILE__)."/test_{$file}.phpt";
        if (file_exists($test)) {
            continue;
        }
        $stub = "--TEST--
Template Test: $file
--FILE--
<?php
require_once 'testsuite.php';
compilefile('$file');

--EXPECTF--
";
        $fh = fopen($test,"w");
        fwrite($fh, $stub);
        fclose($fh);
    }