CopernicaMarketingSoftware / PHP-CPP

Library to build PHP extensions with C++
http://www.php-cpp.com/
Apache License 2.0
1.43k stars 337 forks source link

Calling auto-loaded PHP Classes (composer) #188

Closed sclearion closed 9 years ago

sclearion commented 9 years ago

Im using PHPCPP to speed up components of our SlimPHP api. Is it possible to call a nested namespaced class from PHPCPP with the Php::call method.

Example: Calling the Calculator class located in ./vendor/acme/math/Calculator.php by using Php::call("acme\math\Calculator::increment", 3). As it stands now I can only call classes explicitly defined in the index.php file like this:

Php::call("Calculator::increment", 3)

...despite the vendor classes already being included by the autoloader

sclearion commented 9 years ago

My bad Its working as expected. Had to install some unrelated extraneous libs in by c++ dev box