deuill / go-php

PHP bindings for the Go programming language (Golang)
MIT License
930 stars 105 forks source link

Scripts passed to `Context.Eval` do not inherit variables in scope. #15

Closed deuill closed 8 years ago

deuill commented 8 years ago

As such, it is currently impossible to Context.Bind a variable and use it with Context.Eval. This is related to this hack, since closures in PHP need their scope passed in explicitly.

deuill commented 8 years ago

Fixed by #16.