Hi Stats, 2011/12/4 Stas Malyshev <smalys...@sugarcrm.com>: > Hi! > > >> If we care about binary API compatibility, how about make >> >> PS_MOD_SID2/PS_MOD_FUNCS_SID2 >> >> macros? Then we can forget about ABI. > > > I'm sorry, I don't understand how any macros would help anything. Adding > stuff to the structure would break binary compatibility, how the macros > would help it? >
Macro is for source level compatibility for msession or like, not for binary level. AFAIK, if we just add entry at end of structure and there is no alignment issue, then we can keep binary compatibility. There may be platforms that may causes problems, though. It there is, please let me know. I'll think about ABI for PHP 5.3/5.4, but isn't better to have current patch for PHP 5.4.0? Then we don't need additional memory initialization/checks for 5.4. I compiled sqilte module to test it, but valgrind reports memory leaks :( I guess I should use memcache for testing. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php