openwhisk-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Allen <...@akrabat.com>
Subject Re: PHP 7.1 support for OpenWhisk
Date Sun, 23 Jul 2017 18:46:14 GMT
Hi all,

I've added a "How to test" section to the description in https://github.com/apache/incubator-openwhisk/pull/2415
<https://github.com/apache/incubator-openwhisk/pull/2415> which may make it easier try
it out locally.

Regards,

Rob...


> On 2 Jul 2017, at 15:12, Rob Allen <rob@akrabat.com> wrote:
> 
> Hi all,
> 
> I have raised a PR to implement native PHP 7.1 support in OpenWhisk. I’ve called this
kind `php:7.1`, as I expect we’ll want a 7.2, 7.3 etc.
> 
> This allows us to write PHP actions like this:
> 
> <?php
> function main(array $args) : array
> {
>     $name = $args["name"] ?? "stranger";
>     $greeting = "Hello $name!";
>     return ["greeting" => $greeting];
> }
> 
> 
> I’ve tried to match the functionality of the other languages with support for --main
to change the action's entry function along with support for zip files of multiple PHP files,
along with providing tests and documentation that match that provided with the other languages.
> 
> The PR is at https://github.com/apache/incubator-openwhisk/pull/2415 <https://github.com/apache/incubator-openwhisk/pull/2415>
and I would appreciate all reviews and feedback.
> 
> Regards,
> 
> Rob...


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message