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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -