[PHP-DEV] Getting global variable in a multithreaded PHP embedded application

2007-01-05 Thread Roberto Fichera
ot;myVar" ), (void **)&data) == FAILURE ) { fprintf( stderr, "The infoString array myVar not found in $GLOBALS" ); goto out; } if ( data == NULL ) { fprintf( stderr, "myVar doesn't contains any data" ); goto out; } } out:

Re: [PHP-DEV] Getting global variable in a multithreaded PHP embedded application

2007-01-05 Thread Roberto Fichera
n me how to do it? I found the solution myself :-))!! Basically using the active_symbol_table instead of the symbol_table and adding +1 to the sizeof(), I solved the problem :-))!!! zval **data = NULL; HashTable *arrayHash = NULL; void *prev_interp = NULL; prev_interp = tsrm_set_interpr

Re: [PHP-DEV] Getting global variable in a multithreaded PHP embedded application

2007-01-05 Thread Roberto Fichera
At 12.18 05/01/2007, Johannes Schlüter wrote: >Hi Roberto, > >On Fri, 2007-01-05 at 11:33 +0100, Roberto Fichera wrote: >> Now my problem is how to find declared functions in a context. Which >hash table >> I have to use? > >Just take a look at the structure behind

Re: [PHP-DEV] Getting global variable in a multithreaded PHP embedded application

2007-01-05 Thread Roberto Fichera
At 12.33 05/01/2007, Roberto Fichera wrote: >At 12.18 05/01/2007, Johannes Schlüter wrote: > >>Hi Roberto, >> >>On Fri, 2007-01-05 at 11:33 +0100, Roberto Fichera wrote: >>> Now my problem is how to find declared functions in a context. Which >>hash table &

Re: [PHP-DEV] Getting global variable in a multithreaded PHP embedded application

2007-01-05 Thread Roberto Fichera
At 13.05 05/01/2007, Roberto Fichera wrote: >At 12.33 05/01/2007, Roberto Fichera wrote: >>At 12.18 05/01/2007, Johannes Schlüter wrote: >> >>>Hi Roberto, >>> >>>On Fri, 2007-01-05 at 11:33 +0100, Roberto Fichera wrote: >>>> Now my problem