1
0
mirror of https://github.com/deuill/go-php.git synced 2024-09-21 08:50:45 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
081d7a133f Return values as copies when converting
Previously, value conversions were made on the original value, and thus,
calling methods like `Value.Int` had the side-effect of changing the
value's type for subsequent calls to `Value.Interface`. Any conversion
required happens on value copies, which are automatically destroyed
after use.
2015-10-18 01:13:28 +01:00
3542780c5e Add reverse value bindings
Expressions executed in the `Context.Eval` method can now return a
value, which will be passed to the Go caller, and can be used as a
regular Go value.
2015-10-18 00:26:09 +01:00
6a3fd786ea Add struct-to-object value bindings 2015-10-17 16:00:16 +01:00
7ed2c81ec6 Move NewContext function to engine package
Call order is now enforced when using the root `php` package by moving
the `NewContext` function in the `engine` package, as a method of the
`Engine` method receiver. Further clean-ups have been made to the code
as a result of this change.
2015-10-16 14:42:15 +01:00
8a2ce468e2 Add documentation blocks.
Added documentation blocks and licence headers to all files.
2015-10-04 19:28:44 +01:00
7f797605e9 Split code into seperate directories. 2015-10-02 00:48:33 +01:00