I've implemented a good majority of the getter/setter syntax for objects which 
was pretty easy due to the already implemented functionality of __get()/__set().

For static getters/setters there is no such obvious place to hook the new 
functionality, I was considering modifying the ZEND_ASSIGN opcode which would 
look back to the previous opcode (which should be a ZEND_FETCH_W) to identify 
the class/variable and then call the setter when appropriate.

Does that seem like a good strategy or would you recommend some other way?

-Clint

Reply via email to