How to start writing a PHP5 extension in C++

前端 未结 2 366
-上瘾入骨i
-上瘾入骨i 2020-12-13 00:50

I\'m writing a PHP5 extension, and while I could write it in C, it would be easier to use C++ and take advantage of the STL and Boost.

Trouble is, the tutorials I\'v

2条回答
  •  甜味超标
    2020-12-13 01:23

    There's also this quickie intro to wrapping a class (and exporting functions in Class::Method style) here: http://devzone.zend.com/article/4486

    For me the most useful part is the lines to add for C++ compiler/linking rules to config.m4 for phpize.

提交回复
热议问题