Hello l0t3k,
for some reason i always avoided using it - but after your mail seem to need to switch to it, doing so now. marcus Friday, February 17, 2006, 5:23:04 AM, you wrote: > ""Marcus Boerger"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> helly Wed Feb 15 21:34:21 2006 UTC >> +static inline text_iter_obj* text_iter_to_obj(zend_object_iterator *iter) >> +{ >> + static text_iter_obj adr; >> + static int ofs = (char*)&adr.iter - (char*)&adr; >> + >> + return (text_iter_obj *)((char*)iter - ofs); >> +} >> > any reason not to use offsetof(). The above does not compile on Windows. Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php