Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56715 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92736 invoked from network); 2 Dec 2011 07:13:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2011 07:13:53 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:41809] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/02-15959-0BA78DE4 for ; Fri, 02 Dec 2011 02:13:52 -0500 Received: by ggnv1 with SMTP id v1so2211825ggn.29 for ; Thu, 01 Dec 2011 23:13:49 -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=PeKG0jdUjlPH1HZWMA0HSPlwSlxYSu0P3Y9AGSQYZeg=; b=Wj8o66cNXjX3TbQ+WKeSNXaDmTZhWTbR4x9rEpKF2vL0q89ZP98uuUW6ICucyIkaZE c1U+H16FT3uG28ikgxlJrsDtD47x+Z9DRPtwe3eglGxCVAQVx8LK16gZc9TY1E1w1OPx pPyMNDGIsERxXEq7Udpezv2/oXSskmAYo8sfE= Received: by 10.182.164.74 with SMTP id yo10mr2077575obb.69.1322810029148; Thu, 01 Dec 2011 23:13:49 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.182.55.131 with HTTP; Thu, 1 Dec 2011 23:13:08 -0800 (PST) In-Reply-To: References: <4EBDC283.3040700@yahoo.co.jp> <4ED727FB.7030001@uw.no> <4ED76013.50601@lerdorf.com> <4ED85560.6040101@uw.no> Date: Fri, 2 Dec 2011 16:13:08 +0900 X-Google-Sender-Auth: MLZy1WBJYsUR9B-dMs6j1RcQ0-g Message-ID: To: "Daniel K." Cc: Rasmus Lerdorf , 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 all, 2011/12/2 Yasuo Ohgaki : > Hi all, > > 2011/12/2 Yasuo Ohgaki : >> With strict session, user cannot set session ID. If user can, it's not >> a strict session, but adoptive. >> >> If user would like to use adoptive session, user may set >> session.use_strict_mode=0. > > When user tried to use session_id() to set their on ID when > session.use_strict_mode=1, it would be nicer to emit warning error. > Failing silently is not good. > > Any comments? > Updated patch so that session_id() raise warning when use_strict_mode is on. I forgot to mention that I've fixed session_set_save_handler() to take care new parameters. If everybody is comfortable with this patch. I would like to write docs for this. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net