PHP Events extension written in C++