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] Re: Ternary operator performance improvements

2011-10-14 Thread Dmitry Stogov
Hi, As I already said, I don't see any technical issues with the patch. I don't like it very mach, but it looks robust, and I don't object about it. Thanks. Dmitry. On 10/14/2011 10:08 PM, Arnaud Le Blanc wrote: Hi, I've already posted this patch and it has since been reviewed and improved. I

[PHP-DEV] Ternary operator performance improvements

2011-10-14 Thread Arnaud Le Blanc
Hi, I've already posted this patch and it has since been reviewed and improved. I'm re-posting it for discussion before eventually commiting it. The ternary operator always copies its second or third operand, which is very slow compared to an if/else when the operand is an array for example: $

[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