php-cpp

    0熱度

    1回答

    我正在使用PHP-CPP創建PHP擴展來調用C++函數。 我通過PHP-CPP將我的cpp集成到cpp的示例代碼後解決了許多錯誤。但我被困在下面的錯誤, CapPicture.cpp: In function ‘void* get_module()’: CapPicture.cpp:72:45: error: no matching function for call to ‘Php::Exte

    5熱度

    1回答

    我想在centos 6.5上安裝php-cpp。 當我運行make命令,我得到錯誤: make: Warning: File `Makefile' has modification time 5.1e+05 s in the future mkdir -p shared/common mkdir -p shared/zend mkdir -p shared/hhvm g++ -Wall -

    5熱度

    1回答

    使用PHP-CPP處理PHP的小擴展,我在C++端接收一個包含對象的數組,並且需要檢索它的類名稱。對象Php :: Value看起來沒有任何方法。 類似正如我在HNI在此擴展做: https://github.com/mcuadros/bson-hni/blob/master/src/encode.cpp#L86

    -2熱度

    1回答

    我正在用C++開發PHP-CPP擴展。當我通過命令行運行它時,我的擴展功能正常工作。但是當我嘗試在瀏覽器中運行它時,瀏覽器顯示類或函數沒有在那裏聲明的錯誤。任何人都可以告訴我如何在瀏覽器中運行它? PHP文件: <?php include 'main.cpp'; ini_set('display_errors', 1); ini_set('display_startu

    1熱度

    1回答

    我使用php-cpp爲我的php代碼創建擴展,當我嘗試編譯main.cpp的簡單結構時文件,我得到一些奇怪的錯誤。 這是編譯錯誤: g++ -std=gnu++11 main.cpp In file included from lib/phpcpp/phpcpp.h:39:0, from main.cpp:122: lib/phpcpp/type.h:32:1: warning:

    1熱度

    1回答

    我試圖通過PHP-CPP做出Bencode擴展庫,所以有喜歡幾類: class BItem : public Php::Base { public: virtual std::string getType() const { return "BItem"; } }; class BDict : public BItem { public: std::unordered_m

    0熱度

    1回答

    我想添加一個靜態成員像下面 class BaseYii{ public static $map = [1,2,3]//sutff } 這是我的C++代碼, class BaseYii : public Php::Base { public: Php::Array hehe; BaseYii() = default; /** * c++ destructor */