I need help for PHP thread code

  • Follow


-----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?


mfg, Andreas Otto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJM17dXAAoJEGTcPijNG3/AwZgH/RfSB6g/7hqlw2RBNsyj7fzD
BNw51EbNP7g2wLjBaHe252I/IgMyxr+hvsmuZKGxmPPijfL8ciKXVY+r8jQguNY9
Lt28Q8ebUNqFpmsebM6kFXlleBpP3R2OkjkQtFnTUh8hzk9uFOqMpd38vV0dPVPC
1SrRillsz/yhDMFXyIW7qNgWQb95gQqUOVJMvdL21i4jvpmPjij9wGQgtxRrEToS
vDXxM3FIdef2xDuF30K8yIAutvLe4wpHau1F38R31yafDSLtMLgKUy9xR0RU+EPe
EPd6V+cGThpy6Z1fBAgS1/6cXe2sneVsRNPp0hSpoYbNOOLEhEKzQ5R6yaTuy+4=
=Uq35
-----END PGP SIGNATURE-----
0
Reply Andreas 11/8/2010 8:39:51 AM

On 11/8/2010 3:39 AM, Andreas Otto wrote:
> 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?
>
>
> mfg, Andreas Otto

1 - Is this supposed to be php?
2 - What are you talking about?

-- 
Shelly
0
Reply sheldonlg 11/8/2010 12:59:16 PM


sheldonlg wrote:
> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>> 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?
>>
>>
>> mfg, Andreas Otto
> 
> 1 - Is this supposed to be php?

looks like C to me.

> 2 - What are you talking about?
> 

He wants to duplicate the way Apache invokes PHP, I suspect.

But using threading rather than forking..
0
Reply The 11/8/2010 1:09:03 PM

On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
> sheldonlg wrote:
>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>> 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?
>>>
>>>
>>> mfg, Andreas Otto
>>
>> 1 - Is this supposed to be php?
>
> looks like C to me.

That was a sarcastic question.  This is a php group.

>
>> 2 - What are you talking about?
>>
>
> He wants to duplicate the way Apache invokes PHP, I suspect.
>
> But using threading rather than forking..

Again, that was a sarcastic question meaning "if you want help on 
something, take the time and trouble to explain your problem so that 
others can readily understand what you want".

I guess this once again proves SDNWOTN.  (Sarcasm Does Not Work On The 
Net ---  actually made it into the dictionary of acronyms).

-- 
Shelly
0
Reply sheldonlg 11/8/2010 1:16:43 PM

On 11/8/2010 8:16 AM, sheldonlg wrote:
> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>> sheldonlg wrote:
>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>> 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?
>>>>
>>>>
>>>> mfg, Andreas Otto
>>>
>>> 1 - Is this supposed to be php?
>>
>> looks like C to me.
>
> That was a sarcastic question. This is a php group.
>
>>
>>> 2 - What are you talking about?
>>>
>>
>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>
>> But using threading rather than forking..
>
> Again, that was a sarcastic question meaning "if you want help on
> something, take the time and trouble to explain your problem so that
> others can readily understand what you want".
>
> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
> Net --- actually made it into the dictionary of acronyms).
>

Don't worry, Sheldon - it works with intelligent people.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
Reply Jerry 11/8/2010 1:35:35 PM

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@attglobal.net
==================
0
Reply Jerry 11/8/2010 1:51:34 PM

On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
> On 11/8/2010 8:16 AM, sheldonlg wrote:
>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>> sheldonlg wrote:
>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>> 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?
>>>>>
>>>>>
>>>>> mfg, Andreas Otto
>>>>
>>>> 1 - Is this supposed to be php?
>>>
>>> looks like C to me.
>>
>> That was a sarcastic question. This is a php group.
>>
>>>
>>>> 2 - What are you talking about?
>>>>
>>>
>>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>>
>>> But using threading rather than forking..
>>
>> Again, that was a sarcastic question meaning "if you want help on
>> something, take the time and trouble to explain your problem so that
>> others can readily understand what you want".
>>
>> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
>> Net --- actually made it into the dictionary of acronyms).
>>
>
> Don't worry, Sheldon - it works with intelligent people.

Please Jerry, lets not have yet another TNP-Jerry trading insults thread.

-- 
Shelly
0
Reply sheldonlg 11/8/2010 1:52:39 PM

On 11/8/2010 8:52 AM, sheldonlg wrote:
> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>> sheldonlg wrote:
>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>> 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?
>>>>>>
>>>>>>
>>>>>> mfg, Andreas Otto
>>>>>
>>>>> 1 - Is this supposed to be php?
>>>>
>>>> looks like C to me.
>>>
>>> That was a sarcastic question. This is a php group.
>>>
>>>>
>>>>> 2 - What are you talking about?
>>>>>
>>>>
>>>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>>>
>>>> But using threading rather than forking..
>>>
>>> Again, that was a sarcastic question meaning "if you want help on
>>> something, take the time and trouble to explain your problem so that
>>> others can readily understand what you want".
>>>
>>> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
>>> Net --- actually made it into the dictionary of acronyms).
>>>
>>
>> Don't worry, Sheldon - it works with intelligent people.
>
> Please Jerry, lets not have yet another TNP-Jerry trading insults thread.
>

It's impossible to insult an idiot, Sheldon.  I was just pointing out 
that your sarcasm was not wasted.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
0
Reply Jerry 11/8/2010 2:02:55 PM

sheldonlg wrote:
> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>> sheldonlg wrote:
>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>> 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?
>>>>
>>>>
>>>> mfg, Andreas Otto
>>>
>>> 1 - Is this supposed to be php?
>>
>> looks like C to me.
> 
> That was a sarcastic question.  This is a php group.
> 
>>
>>> 2 - What are you talking about?
>>>
>>
>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>
>> But using threading rather than forking..
> 
> Again, that was a sarcastic question meaning "if you want help on 
> something, take the time and trouble to explain your problem so that 
> others can readily understand what you want".
> 
> I guess this once again proves SDNWOTN.  (Sarcasm Does Not Work On The 
> Net ---  actually made it into the dictionary of acronyms).
> 
Apologies. I assumed you were smarter than Jerry. And  had realised 
sarcasm was wasted on someone with such a poor command of english.
0
Reply The 11/8/2010 2:56:42 PM

On 11/8/2010 9:56 AM, The Natural Philosopher wrote:
> sheldonlg wrote:
>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>> sheldonlg wrote:
>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>> 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?
>>>>>
>>>>>
>>>>> mfg, Andreas Otto
>>>>
>>>> 1 - Is this supposed to be php?
>>>
>>> looks like C to me.
>>
>> That was a sarcastic question. This is a php group.
>>
>>>
>>>> 2 - What are you talking about?
>>>>
>>>
>>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>>
>>> But using threading rather than forking..
>>
>> Again, that was a sarcastic question meaning "if you want help on
>> something, take the time and trouble to explain your problem so that
>> others can readily understand what you want".
>>
>> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
>> Net --- actually made it into the dictionary of acronyms).
>>
> Apologies. I assumed you were smarter than Jerry. And had realised
> sarcasm was wasted on someone with such a poor command of english.

(a) you may have a point about the poor command of English.
(b) I won't be baited into any form of personal attack mode.

-- 
Shelly
0
Reply sheldonlg 11/8/2010 4:04:50 PM

In news:ib8vuh$n28$1@news.eternal-september.org,
Jerry Stuckle <jstucklex@attglobal.net> typed:
> On 11/8/2010 8:52 AM, sheldonlg wrote:
>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>>> sheldonlg wrote:
>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>>> 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?
>>>>>>>
>>>>>>>
>>>>>>> mfg, Andreas Otto
>>>>>>
>>>>>> 1 - Is this supposed to be php?
>>>>>
>>>>> looks like C to me.
>>>>
>>>> That was a sarcastic question. This is a php group.
>>>>
>>>>>
>>>>>> 2 - What are you talking about?
>>>>>>
>>>>>
>>>>> He wants to duplicate the way Apache invokes PHP, I
>>>>> suspect. But using threading rather than forking..
>>>>
>>>> Again, that was a sarcastic question meaning "if you
>>>> want help on something, take the time and trouble to
>>>> explain your problem so that others can readily
>>>> understand what you want". I guess this once again proves SDNWOTN. 
>>>> (Sarcasm Does
>>>> Not Work On The Net --- actually made it into the
>>>> dictionary of acronyms).
>>>
>>> Don't worry, Sheldon - it works with intelligent people.
>>
>> Please Jerry, lets not have yet another TNP-Jerry trading
>> insults thread.
>
> It's impossible to insult an idiot, Sheldon.  I was just
> pointing out that your sarcasm was not wasted.

You were "just" insultiing a person for no good reason Stukie and you know 
it. You're a real wart on the ass of progress for this group.
   May you survive a concussion that removes your memory and leaves you 
learning disabled. 


0
Reply Twayne 11/8/2010 4:10:53 PM

Twayne wrote:
> In news:ib8vuh$n28$1@news.eternal-september.org,
> Jerry Stuckle <jstucklex@attglobal.net> typed:
>> On 11/8/2010 8:52 AM, sheldonlg wrote:
>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>>>> sheldonlg wrote:
>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>>>> 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?
>>>>>>>>
>>>>>>>>
>>>>>>>> mfg, Andreas Otto
>>>>>>> 1 - Is this supposed to be php?
>>>>>> looks like C to me.
>>>>> That was a sarcastic question. This is a php group.
>>>>>
>>>>>>> 2 - What are you talking about?
>>>>>>>
>>>>>> He wants to duplicate the way Apache invokes PHP, I
>>>>>> suspect. But using threading rather than forking..
>>>>> Again, that was a sarcastic question meaning "if you
>>>>> want help on something, take the time and trouble to
>>>>> explain your problem so that others can readily
>>>>> understand what you want". I guess this once again proves SDNWOTN. 
>>>>> (Sarcasm Does
>>>>> Not Work On The Net --- actually made it into the
>>>>> dictionary of acronyms).
>>>> Don't worry, Sheldon - it works with intelligent people.
>>> Please Jerry, lets not have yet another TNP-Jerry trading
>>> insults thread.
>> It's impossible to insult an idiot, Sheldon.  I was just
>> pointing out that your sarcasm was not wasted.
> 
> You were "just" insultiing a person for no good reason Stukie and you know 
> it. You're a real wart on the ass of progress for this group.
>    May you survive a concussion that removes your memory and leaves you 
> learning disabled. 
> 
> 
I think thats already happened...;-)
0
Reply The 11/8/2010 4:33:48 PM

On 11/8/2010 11:33 AM, The Natural Philosopher wrote:
> Twayne wrote:
>> In news:ib8vuh$n28$1@news.eternal-september.org,
>> Jerry Stuckle <jstucklex@attglobal.net> typed:
>>> On 11/8/2010 8:52 AM, sheldonlg wrote:
>>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>>>>> sheldonlg wrote:
>>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>>>>> 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?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> mfg, Andreas Otto
>>>>>>>> 1 - Is this supposed to be php?
>>>>>>> looks like C to me.
>>>>>> That was a sarcastic question. This is a php group.
>>>>>>
>>>>>>>> 2 - What are you talking about?
>>>>>>>>
>>>>>>> He wants to duplicate the way Apache invokes PHP, I
>>>>>>> suspect. But using threading rather than forking..
>>>>>> Again, that was a sarcastic question meaning "if you
>>>>>> want help on something, take the time and trouble to
>>>>>> explain your problem so that others can readily
>>>>>> understand what you want". I guess this once again proves SDNWOTN.
>>>>>> (Sarcasm Does
>>>>>> Not Work On The Net --- actually made it into the
>>>>>> dictionary of acronyms).
>>>>> Don't worry, Sheldon - it works with intelligent people.
>>>> Please Jerry, lets not have yet another TNP-Jerry trading
>>>> insults thread.
>>> It's impossible to insult an idiot, Sheldon. I was just
>>> pointing out that your sarcasm was not wasted.
>>
>> You were "just" insultiing a person for no good reason Stukie and you
>> know it. You're a real wart on the ass of progress for this group.
>> May you survive a concussion that removes your memory and leaves you
>> learning disabled.
>>
> I think thats already happened...;-)

Oh well, another thread down the tubes.  Bye.

-- 
Shelly
0
Reply sheldonlg 11/8/2010 5:29:06 PM

In article <ib9c11$foa$1@news.eternal-september.org>,
 sheldonlg <sheldonlg@thevillages.net> wrote:

> On 11/8/2010 11:33 AM, The Natural Philosopher wrote:
> > Twayne wrote:
> >> In news:ib8vuh$n28$1@news.eternal-september.org,
> >> Jerry Stuckle <jstucklex@attglobal.net> typed:
> >>> On 11/8/2010 8:52 AM, sheldonlg wrote:
> >>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
> >>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
> >>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
> >>>>>>> sheldonlg wrote:
> >>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:

[snip]

> Oh well, another thread down the tubes.  Bye.

And the fuckers still haven't learnt to snip. Amazing.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689
0
Reply Tim 11/8/2010 8:10:13 PM

Tim Streater wrote:
> In article <ib9c11$foa$1@news.eternal-september.org>,
> sheldonlg <sheldonlg@thevillages.net> wrote:
> 
>> On 11/8/2010 11:33 AM, The Natural Philosopher wrote:
>> > Twayne wrote:
>> >> In news:ib8vuh$n28$1@news.eternal-september.org,
>> >> Jerry Stuckle <jstucklex@attglobal.net> typed:
>> >>> On 11/8/2010 8:52 AM, sheldonlg wrote:
>> >>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>> >>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>> >>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>> >>>>>>> sheldonlg wrote:
>> >>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
> 
> [snip]
> 
>> Oh well, another thread down the tubes.  Bye.
> 
> And the fuckers still haven't learnt to snip. Amazing.
> 
Or to use a killfile. Sigh.

I wouldn't have seen any of it if someone ELSE hadn't responded to 
Jerry's trolling.

If every one did the same, it might be a place to discuss PHP again.
0
Reply The 11/8/2010 8:35:20 PM

The Natural Philosopher wrote:
> I wouldn't have seen any of it if someone ELSE hadn't responded to 
> Jerry's trolling.

I dunno, it was kind of amusing watching from the sidelines (since I 
also plonked Jerry a while back).

> If every one did the same, it might be a place to discuss PHP again.

Agreed.
0
Reply Robert 11/8/2010 9:55:45 PM

..oO(sheldonlg)

>Oh well, another thread down the tubes.  Bye.

Good newsreaders allow to filter subthreads. ;-)

Micha
0
Reply Michael 11/8/2010 11:14:42 PM

On 11/8/2010 6:14 PM, Michael Fesser wrote:
> .oO(sheldonlg)
>
>> Oh well, another thread down the tubes.  Bye.
>
> Good newsreaders allow to filter subthreads. ;-)
>
> Micha

The problem with killfiling any of the participants here is that 
occasionally I wander into a thread and actually _learn_ something.  I 
don't want to lose that, so I just skip over the thread when it turns to 
insult trading.

-- 
Shelly
0
Reply sheldonlg 11/9/2010 12:36:03 AM

17 Replies
1597 Views

(page loaded in 0.584 seconds)

Similiar Articles:


















7/30/2012 9:11:47 AM


Reply: