-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop dual PHP/PHP7 executors as per #117
- Loading branch information
Showing
3 changed files
with
11 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
from .php_executor import PHPExecutor | ||
from dmoj.executors.base_executor import ScriptExecutor | ||
|
||
|
||
class Executor(PHPExecutor): | ||
class Executor(ScriptExecutor): | ||
name = 'PHP' | ||
ext = '.php' | ||
command = 'php' | ||
command_paths = ['php5', 'php'] | ||
command_paths = ['php7', 'php5', 'php'] | ||
|
||
fs = ['.*/php[\w-]*\.ini$', '.*/conf.d/.*\.ini$'] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Xyene
Author
Member
|
||
|
||
test_program = '<?php while($f = fgets(STDIN)) echo $f;' | ||
|
||
def get_cmdline(self): | ||
return ['php', self._code] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
I thought you said PHP worked with NOENT inis?