Closed lisachenko closed 4 years ago
Unpleasant part: the zend_executor_globals
structure contains C #ifdef
parts, thus it is platform-dependent, need to handle this case with a preprocessor, like https://github.com/ircmaxell/php-c-parser by @ircmaxell
All objects in PHP are also stored in the
EG(objects_store)
which is plain array of references to the object entries. This library can provide API for this store to query an object by its identifier/handle, available viaspl_object_id()
.ObjectStore
should implementCountable
andArrayAccess
interfaces to access objects in the store. It would be nice to wrap each returnedzend_object
entry into theObjectEntry
instance to have full control over objects.