Re: [PHP-DEV] RFC: Storing additional information for op_arrays

2007-09-21 Thread Stefan Esser
Morning, > I think it's a bug in APC. Each extension has its own slot, by > allocated slot number, and should never touch other slots (unless it > has some protocol to talk to the extension which owns other slot). So > touching slot that is not owned by the code is a bug like touching > unallocate

Re: [PHP-DEV] RFC: Storing additional information for op_arrays

2007-09-20 Thread Stanislav Malyshev
The basic idea would be to add API functions like zend_op_array_add_data(key, data, size, flags) zend_op_array_remove_data()... zend_op_array_get_data, zend_op_array_get_all_data In the flags one could choose: Needs to be cached etc... Well and this will be stored in a datastructure that will jus

Re: [PHP-DEV] RFC: Storing additional information for op_arrays

2007-09-20 Thread Stanislav Malyshev
One problem I and others have run into is that from time to time we need to store extra information for specific opcode arrays. For simple values it is possible to use one of the reserved slots in the op_array structure, but in the past that has been unrelieable because APC for example simply over

Re: [PHP-DEV] RFC: Storing additional information for op_arrays

2007-09-20 Thread Derick Rethans
On Thu, 20 Sep 2007, Stefan Esser wrote: > Derick Rethans schrieb: > > On Thu, 20 Sep 2007, Stefan Esser wrote: > > > > > >> One problem I and others have run into is that from time to time we need > >> to store extra information for specific opcode arrays. For simple values > >> it is possible

Re: [PHP-DEV] RFC: Storing additional information for op_arrays

2007-09-20 Thread Stefan Esser
Derick Rethans schrieb: > On Thu, 20 Sep 2007, Stefan Esser wrote: > > >> One problem I and others have run into is that from time to time we need >> to store extra information for specific opcode arrays. For simple values >> it is possible to use one of the reserved slots in the op_array >> str

Re: [PHP-DEV] RFC: Storing additional information for op_arrays

2007-09-20 Thread Derick Rethans
On Thu, 20 Sep 2007, Stefan Esser wrote: > One problem I and others have run into is that from time to time we need > to store extra information for specific opcode arrays. For simple values > it is possible to use one of the reserved slots in the op_array > structure, but in the past that has bee

[PHP-DEV] RFC: Storing additional information for op_arrays

2007-09-20 Thread Stefan Esser
Hi everyone, I would like to use this list to address the major players in bytecode caching tools: Zend, APC, Xcache... One problem I and others have run into is that from time to time we need to store extra information for specific opcode arrays. For simple values it is possible to use one of th