Re: [PHP-DEV] Problem with PHP as a plugin (C++) using embed sapi

2011-10-15 Thread Olivier Hoareau
Hi Johannes, Many thanks ! I think SAPI approach is a good one for my purpose, I can then avoid using directly the PHP/embed global variables and use functions (i.e. the stable api you mention) to manipulate these structures. I need to create new SAPI and compile libphp5.so including this SAPI

Re: [PHP-DEV] Problem with PHP as a plugin (C++) using embed sapi

2011-10-14 Thread Johannes Schlüter
Hi, On Fri, 2011-10-14 at 10:49 +0200, Olivier Hoareau wrote: > * My use case : > > [A] is a main program written in C++ > [B] is a C++ "plugin" of [A], compiled in a shared library dynamically loaded > (dlopen-like functions) > [CX] are a libphpX.so C shared libraries compiled with "--enable-em

[PHP-DEV] Problem with PHP as a plugin (C++) using embed sapi

2011-10-14 Thread Olivier Hoareau
* My use case : [A] is a main program written in C++ [B] is a C++ "plugin" of [A], compiled in a shared library dynamically loaded (dlopen-like functions) [CX] are a libphpX.so C shared libraries compiled with "--enable-embed", where "X" is the PHP version number (5.4, 5.3, ..., 5.0) User calls