lisachenko / z-engine

:zap: PHP Engine Direct API
MIT License
448 stars 22 forks source link

Provide API to read opcode's operands, resolves #22 #23

Closed lisachenko closed 4 years ago

lisachenko commented 4 years ago

Ths PR contains implementation for low-level macros like ZEND_CALL_VAR, ZEND_CALL_VAR_NUM, RT_CONSTANT, EX_VAR.

Now it is possible to read and write values to opcode operands within opcode handlers. This should open a lot of new possibilities to define own extensions (like scalar types).

Also, ExecutionDataTest is added.