From 083223b5957621a36fcd52559e57715d5de4f5ad Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 23 Oct 2020 00:44:43 -0700 Subject: [PATCH] compiler_vm: add PHP --- modules/compiler_vm/languages/php.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 modules/compiler_vm/languages/php.pm diff --git a/modules/compiler_vm/languages/php.pm b/modules/compiler_vm/languages/php.pm new file mode 100755 index 00000000..752fee2d --- /dev/null +++ b/modules/compiler_vm/languages/php.pm @@ -0,0 +1,18 @@ +#!/usr/bin/perl + +use warnings; +use strict; + +package php; +use parent '_default'; + +sub initialize { + my ($self, %conf) = @_; + + $self->{sourcefile} = 'prog.php'; + $self->{execfile} = 'prog.php'; + $self->{default_options} = ''; + $self->{cmdline} = 'php $options $sourcefile'; +} + +1;