Working on a small extension for PHP using PHP-CPP, I receive at C++ side, an array with objects and I need retrieve the class name of it. The object Php::Value didn't looks like have any method for it.
Similar as i do at HNI in this extension: https://github.com/mcuadros/bson-hni/blob/master/src/encode.cpp#L86
__CLASS__in it? php.net//manual/en/language.constants.predefined.php__CLASS__is for PHP at the object scope. :/