Example #1
0
 function get_php_command($subject)
 {
     global $phc, $plugin_dir;
     $init = $this->init;
     return "{$phc} --run {$plugin_dir}/tools/demi_eval.la --r-option=\"{$init}\" --convert-uppered --dump={$plugin_dir}/tools/demi_eval.la {$subject} | " . get_php_command_line($subject, "pipe");
 }
 function get_php_command($subject)
 {
     return get_php_command_line($subject);
 }
Example #3
0
 function get_php_command($subject)
 {
     global $phc, $plugin_dir;
     return "{$phc} --run {$plugin_dir}/tools/debug_zval.la --convert-uppered --dump={$plugin_dir}/tools/debug_zval.la {$subject} | " . get_php_command_line($subject, "pipe");
 }
Example #4
0
function run_with_php($program)
{
    global $opt_zero, $filename;
    # Run through PHP
    mydebug(2, "Getting PHP output");
    $command = get_php_command_line($filename, true);
    list($out, $err, $exit) = myrun($command, $program);
    $out = homogenize_all($out, $filename);
    if ($opt_zero && $exit) {
        mydebug(1, "Exit code not zero, skip. (out: {$out}, exit code: {$exit}, error: {$err})");
        return false;
    }
    if ($out == "Timeout") {
        mydebug(1, "Timed out");
        return false;
    }
    return array($out, $err, $exit);
}
 function get_php_command($subject)
 {
     global $phc;
     // Use codegen so we can add -O3 to the command line, and get the failing case.
     return "{$phc} --run=plugins/tests/raise_globals.la --convert-uppered --dump=codegen {$subject} | " . get_php_command_line($subject, "pipe");
 }
Example #6
0
 function get_command_line($subject, $dump, $pass_name)
 {
     global $phc;
     $pipe_command = get_php_command_line($subject, "pipe");
     return "{$phc} --no-hash-bang --{$dump}={$pass_name} {$subject} | {$pipe_command}";
 }
 function get_command_line2($subject)
 {
     $command = $this->command_line;
     $pipe_command = get_php_command_line($subject, "pipe");
     return get_phc_command_line($subject) . " {$command} | {$pipe_command}";
 }
Example #8
0
 function get_php_command($subject)
 {
     global $phc;
     return "{$phc} -O1 --dump=sua {$subject} | " . get_php_command_line($subject, "pipe");
 }