使用 PHP-CPP 为 PHP 做一个小扩展时,我在 C++ 端收到一个包含对象的数组,我需要检索它的类名。对象 Php::Value 看起来没有任何方法。
与我在此扩展中的 HNI 所做的类似: https ://github.com/mcuadros/bson-hni/blob/master/src/encode.cpp#L86
使用 PHP-CPP 为 PHP 做一个小扩展时,我在 C++ 端收到一个包含对象的数组,我需要检索它的类名。对象 Php::Value 看起来没有任何方法。
与我在此扩展中的 HNI 所做的类似: https ://github.com/mcuadros/bson-hni/blob/master/src/encode.cpp#L86