Hi Dmitry,

On Mon, September 1, 2014 16:17, Dmitry Stogov wrote:
> Hi Anatol,
>
>
> what do you mean? heap allocated structure? I think, it's not a good
> option :(
>
> I didn't have time to think about this yet.
>
I thought about creating an extended zend_string struct with an appended
offset member. Pointer to that structure could be injected into
_zend_value and were compatible with the normal zend_string and would be
used only for the offset case. But then, we could get rid of u2.str_offset
and change the meaning of the IS_STR_OFFSET related macros.

That struct could be initialized the same way as any other in an opcode.
However I have yet to figure out where in the compiler this has to happen
(somewhere near the zend_compile_assign() i suppose).

Regards

Anatol


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to