Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98341 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1139 invoked from network); 23 Feb 2017 04:43:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2017 04:43:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:46578] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/49-11648-8786EA85 for ; Wed, 22 Feb 2017 23:43:38 -0500 Received: (qmail 54001 invoked by uid 89); 23 Feb 2017 04:43:33 -0000 Received: from unknown (HELO mail-qt0-f181.google.com) (yohgaki@ohgaki.net@209.85.216.181) by 0 with ESMTPA; 23 Feb 2017 04:43:33 -0000 Received: by mail-qt0-f181.google.com with SMTP id r45so1174766qte.3 for ; Wed, 22 Feb 2017 20:43:32 -0800 (PST) X-Gm-Message-State: AMke39mjMp22G+K+NR+wrTe7jrSSddJUV9MkOVaAWXqOu8cXFiohG/GdljKLo9OK1HWmYfvmg9G0DymDFz/73w== X-Received: by 10.237.51.167 with SMTP id v36mr30411706qtd.272.1487825007133; Wed, 22 Feb 2017 20:43:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.19.232 with HTTP; Wed, 22 Feb 2017 20:42:46 -0800 (PST) In-Reply-To: <1487812245.24440.18.camel@kuechenschabe> References: <13777322.eOKPzv5dy0@mcmic-probook> <1487812245.24440.18.camel@kuechenschabe> Date: Thu, 23 Feb 2017 13:42:46 +0900 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: =?UTF-8?Q?C=C3=B4me_Chilliet?= , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=94eb2c12566609ce7705492b416f Subject: Re: [PHP-DEV] References in the session From: yohgaki@ohgaki.net (Yasuo Ohgaki) --94eb2c12566609ce7705492b416f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, On Thu, Feb 23, 2017 at 10:10 AM, Johannes Schl=C3=BCter wrote: > On Wed, 2017-02-22 at 15:01 +0100, C=C3=B4me Chilliet wrote: > > Hello, > > > > In the $_SESSION documentation we can see the following warning: "You > > can't use references in session variables as there is no feasible way > > to restore a reference to another variable." > > Actually with register_globals gone that requirement should be gone so > we should be able to use the same rules as in other serialisation. The > biggest issue is compatibility of the serialized form (during an update > sessions might be shared between different versions of PHP in some > setups, with some persistent storage even longer) You may try to use 'php_serialize' as serialize handler to see if it helps. If your objects work well with __sleep()/__wakeup(), you wouldn't have issues. If you have, please report issue to bugs.php.net in detail. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --94eb2c12566609ce7705492b416f--