wrap cpp class in php ext