go-php icon indicating copy to clipboard operation
go-php copied to clipboard

Read globals (`$_GET`, `$_POST`, `$_FILES`, `$_REQUEST`, etc) from `http.Request` types

Open deuill opened this issue 8 years ago • 2 comments

There is currently no easy way of populating request-specific globals in PHP contexts (apart from binding variables and setting globals in PHP). For go-php to be useful in replicating or replacing the standard apache/nginx/php-fpm stack, we need to be able to handle requests transparently.

One possible implementation is having Context conform to the http.Handler interface, therefore allowing for transparent handling of incoming requests.

deuill avatar Jan 30 '18 13:01 deuill

Has there been any work on this? Would be very useful for me.

PaulBGD avatar Jun 19 '19 00:06 PaulBGD

Not really, the library is pretty much unmaintained though. Feel free to contribute if you want.

deuill avatar Jun 24 '19 13:06 deuill