[PHP-DEV] zend_ts_hash_clean not thread-safe?

2007-04-16 Thread Marco Cova
Hi all. It seems that zend_ts_hash_clean is not actually thread-safe: it delegates to zend_hash_clean without first acquiring the write lock on the hashtable. Is this behavior an oversight (if so, should I open a bug report with the trivial patch below?) or is this intentional? Marco ---

[PHP-DEV] custom handler for specific zend_ops

2007-02-27 Thread Marco Cova
Hi all. [Please, let me know if there is a better place to ask such questions.] In a Zend extension I'm working on, I need to perform some actions when certain instructions (zend_ops) are executed by the VM. Note that I'm interesting in specific instructions rather than instruction types, e.g.,