FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » I need help for PHP thread code
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: I need help for PHP thread code [message #170557 is a reply to message #170551] Mon, 08 November 2010 13:51 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/8/2010 3:39 AM, Andreas Otto wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I have an library able to create threads by its own ...
> and I want to use this "threads" to run PHP code on it
>
> The flow is:
>
> 1. start PHP
> 2. external library is listen on socket
> 3. external library create thread on new request
> 4. now PHP should be linked to this new thread
>
> currently it is not working ... I use this code...
>
>
> if (create == MQ_FACTORY_NEW_THREAD) {
> // work on NEW thread
> tsrm_set_interpreter_context(tsrm_new_interpreter_context());
> tsrm_ls = (void ***) ts_resource_ex(0, NULL);
> } else {
> // work on an already available thread
> tsrm_ls = (void ***) tmpl->threadData;
> }
>
>
> the problem is that interpreter global's are not initialized, example:
>
> -> EG(objects_store).object_buckets) = 0x0
>
>
> I need to run some initialization on a new external thread
>
>
> Q: is help available?
>
>

You're not going to get a lot of help here; most people are PHP
programmers but have not gotten into the C functions to start and/or
extend PHP. There also seems to be very limited information available
on this.

My recommendation would be to try the Zend site - perhaps you can get
some help there.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script.
Next Topic: how to retrieve xml data from three tables of mysql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 14:25:34 GMT 2024

Total time taken to generate the page: 0.04580 seconds