235
I Use This!
Very High Activity

Commits : Individual Commit

Analyzed 29 days ago. based on code collected about 2 years ago.

Commit ID 9401f8b29ae2ddc470d9e543f0f790776ae0b028

Anon80 Contributor: Rob Allen Files Modified 12
Date: 24-July-2017 at 16:38 Lines Added: 914
Repository: git://github.com/apache/incubator-s4.git master Lines Removed: 0
Commit Comment: Add PHP 7.1 as a kind (#2415) * Implement PHP 7.1 kind * Add tests for PHP 7.1 action * Add PHP action documentation Build the Docker container from php:7.1-alpine and implement the HTTP server using PHP's built in server. Note that when using a zip file, the router requires that the `main` function is stored in `index.php`. Note about the runner: The runner sets the exit code to 1 if it has set the last line of stdout to a string suitable for presentation to the user. Therefore, if the exit code is not one, then display a generic message. If there's a runtime error in the action (i.e. not spotted by linter), then looking for the main() function will find it. Render the error to the logs so that the user knows what's happened. Note about vendor folder in a PHP zip: If the PHP vendor file has a vendor directory, then this directory needs to be used rather than the one supplied in the action container. To do this, we require src/vendor/autoload.php which will exist if the zip file contains it. For the two cases where (1) zip file does not contain a vendor folder, or (2) when running a non-binary code action, we move the container's vendor folder into src/.

Changes by Language

Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
  Scala 374 0 29 0 93 0
  PHP 228 0 125 0 56 0
  Python 4 0 0 0 1 0
  HTML 2 0 0 0 0 0
  Go 2 0 0 0 0 0

Changes by File

File Language Code Added Code Removed Comments Added Comments Removed Blanks Added Blanks Removed
ansible/group_vars/all   No source code was detected in this file.
core/php7.1Action/build.gradle   No source code was detected in this file.
core/php7.1Action/composer.json   No source code was detected in this file.
core/php7.1Action/Dockerfile   No source code was detected in this file.
core/php7.1Action/router.php PHP 199 0 95 0 47 0
  HTML 1 0 0 0 0 0
core/php7.1Action/runner.php PHP 29 0 30 0 9 0
  HTML 1 0 0 0 0 0
docs/actions.md   No source code was detected in this file.
docs/reference.md   No source code was detected in this file.
settings.gradle   No source code was detected in this file.
tests/src/test/scala/actionContainers/Ph... Scala 374 0 29 0 93 0