Re: [PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-16 Thread Sara Golemon
Apart from managing lifecycles, the SAPI is also resposible for things like directing I/O between the host application, how does null-sapi handle this? On Fri, Aug 16, 2013 at 9:36 AM, J David wrote: > Hello, > > We recently successfully embedded PHP into our application using an > approach bas

[PHP-DEV] Interest in a "null" SAPI for embedding?

2013-08-16 Thread J David
Hello, We recently successfully embedded PHP into our application using an approach based on the embed SAPI. However, our application is large and complex, written entirely in C++, requires a bit more functionality than the embed SAPI offers. (As an example, however, it was invaluable.) So we ne

Re: [PHP-DEV] [RFC] Constant Scalar Expressions

2013-08-16 Thread Patrick Schaaf
Am 16.08.2013 01:42 schrieb "Stas Malyshev" : > > But this is not the most tricky part. The most tricky part is this: > if(true) return; > class Foo { > const halfpie = M_PI/2; > } > > Now what happens if this is implemented as an opcode? We can't run any > opcodes past return statement, but Foo is