c++ extension in php yii framework -


i want use c++ extension in yii. have compile .so file , used in php script. when used in yii framework, occurs "class not found",anyone knows why?

the c++ extension rdkafka.so : https://github.com/arnaud-lb/php-rdkafka

 $conf = new rdkafka\conf();  $conf->set("ssl.key.location","./conf/client.key");  $conf->set("ssl.certificate.location","./conf/client.pem");  $conf->set("ssl.ca.location","./conf/ca.pem");  $conf->set("security.protocol","ssl"); 

if running code in namespaced file, need either import class, or prefix \:

$conf = new \rdkafka\conf(); 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -