Zend certified PHP/Magento developer

Compiler: two string tokens to an array

I’m trying add support for callback syntax like fn::$this::method and fn::Foo::method (just creating standard callback array). I think I have the tokenization and parsing correct here:

https://github.com/mrclay/php-src/commit/89ce2f38d8d75a82c8ddd95c836b174a422d3592

But with no working C skills I’m stuck in the compilation. I’m pretty sure the dynamic method call, at least, can be transformed without new op codes or execution logic, but it appears (in the handling of ::class it’s not always the case that classnames can be resolved without an opcode. So I may need an op there that resolves the name and inits an array with it.

Anyone have any advice here?

submitted by /u/mrclay
[link] [comments]