Re: [PHP-DEV] PHP SAPI module help

2014-11-21 Thread Johannes Schlüter
On Fri, 2014-11-21 at 23:06 +0400, Tigran Bayburtsyan wrote: > > And based on that now my main problem is that in PHP C++ sources there > are a lot of static, global variables which is not useful for me, to > clean that all for every request So I'm wondering to build > something which will he

Re: [PHP-DEV] PHP SAPI module help

2014-11-21 Thread Tigran Bayburtsyan
Thanks for your responses. I saw pconn-sapi it's very similar threaded example that I want to implement. I've crated non blocking Event loop in my C++ application ( it's high load binary API server ) , and now I'm trying to integrate PHP SAPI for writing some customisable scripts using PHP functio

Re: [PHP-DEV] PHP SAPI module help

2014-11-20 Thread Johannes Schlüter
On Thu, 2014-11-20 at 19:19 +0800, 兰 肖鲁 wrote: > How about writing this logic in an extension? Because u can write > your own RSHUTDOWN function to protect your data. Sorry, I have no idea what logic you want to put in a rshutdown and what data you want to protect. And how that relates to this di

Re: [PHP-DEV] PHP SAPI module help

2014-11-20 Thread 兰 肖鲁
How about writing this logic in an extension? Because u can write your own RSHUTDOWN function to protect your data. sorry for my poor english. -- lanxiaolu 在 2014年11月20日,下午6:30,Johannes Schlüter 写道: > Hi, > > On Tue, 2014-11-18 at 18:08 +0400, Tigran Bayburtsyan wrote: >> I need to execute

Re: [PHP-DEV] PHP SAPI module help

2014-11-20 Thread Johannes Schlüter
Hi, On Tue, 2014-11-18 at 18:08 +0400, Tigran Bayburtsyan wrote: > I need to execute PHP code in some thread of my application and continue > excecution in another. Is is possible to somehow get all global PHP core > hashtables from first thread and restore PHP from that point in another > thread

[PHP-DEV] PHP SAPI module help

2014-11-18 Thread Tigran Bayburtsyan
Hi I found this email in PHP.net as a contact address for Web masters. My question is about PHP SAPI C/C++ development. I’ve successfully attached PHP to my C/C++ application as a SAPI module with libphp.so , and it’s working now , but I have a problem with multiple tasks in my application. I n