Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56776 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22815 invoked from network); 5 Dec 2011 01:59:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2011 01:59:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:43315] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/20-19375-B752CDE4 for ; Sun, 04 Dec 2011 20:59:24 -0500 Received: by yenm7 with SMTP id m7so1771564yen.29 for ; Sun, 04 Dec 2011 17:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=6xsRU5cbcjxjECfwQG9pL+fMDN1M5YmNLNphBkVfR3w=; b=loRkrzm7xTA0ucf3x+JJgsSzNK5MvetAhwQ9cAFiFqkxCNqTWqW3A9SFJ2LN46zoPR ZitRpP+QT94DNeqyQuIBNeqmashOf25JFXpsFhMRXebeY7R3IENlP55+zFcJGaH2wlJw gdo2wbdHxmyRHEfGCx5b4U2Ei26hPrw82JteY= Received: by 10.236.123.108 with SMTP id u72mr8609580yhh.45.1323050360171; Sun, 04 Dec 2011 17:59:20 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.101.47.17 with HTTP; Sun, 4 Dec 2011 17:58:39 -0800 (PST) In-Reply-To: <4EDAEB9A.3050105@sugarcrm.com> References: <4EBDC283.3040700@yahoo.co.jp> <4ED727FB.7030001@uw.no> <4EDA9788.5070901@sugarcrm.com> <4EDAEB9A.3050105@sugarcrm.com> Date: Mon, 5 Dec 2011 10:58:39 +0900 X-Google-Sender-Auth: aKE_7aD1eLBrkmDHHQIottULeUg Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Strict session? From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Stats, 2011/12/4 Stas Malyshev : > 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 yohgaki@ohgaki.net