Supprting static getter/setter

From: Date: Mon, 21 Nov 2011 19:07:32 +0000
Subject: Supprting static getter/setter
Groups: php.internals 
Request: Send a blank email to internals+get-56462@lists.php.net to get a copy of this message
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

« previous php.internals (#56462) next »