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.
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 standardapache
/nginx
/php-fpm
stack, we need to be able to handle requests transparently.One possible implementation is having
Context
conform to thehttp.Handler
interface, therefore allowing for transparent handling of incoming requests.