Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54687 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68773 invoked from network); 18 Aug 2011 13:33:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Aug 2011 13:33:36 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:48983] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/43-50449-FA41D4E4 for ; Thu, 18 Aug 2011 09:33:36 -0400 Received: by gwb17 with SMTP id 17so1028508gwb.29 for ; Thu, 18 Aug 2011 06:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=OwyPwGNkhlL4+AhGOocwWR8uZG0UqQQR7sEZ0jyvKiI=; b=mQr8jWKTX70sOLubSpCNq48VE7+x4aJBH3wbTapbLr8awVj8TzXEtCE4Hzjck/Lhzo ipRfJk2jkWRvjBrZ47o/M8R1WmpY+vGsxrYRKo2CozYLRplmZEP3JT9IAe3h3trcPAiN YozNHen4Dhq+oDwpwWdZo3Haiq6S3Iu4Q4d0U= MIME-Version: 1.0 Received: by 10.236.191.103 with SMTP id f67mr4137727yhn.93.1313674412707; Thu, 18 Aug 2011 06:33:32 -0700 (PDT) Received: by 10.146.168.9 with HTTP; Thu, 18 Aug 2011 06:33:32 -0700 (PDT) In-Reply-To: <1313673396.1489.6.camel@guybrush> References: <1313673396.1489.6.camel@guybrush> Date: Thu, 18 Aug 2011 15:33:32 +0200 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Paul Dragoonis , Roger Llopart Pla , Arpad Ray , PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Activation of IGBinary serialization extension in 5.4 by default From: tyra3l@gmail.com (Ferenc Kovacs) 2011/8/18 Johannes Schl=C3=BCter : > On Thu, 2011-08-18 at 12:48 +0100, Paul Dragoonis wrote: >> I agree with bundling and providing a .ini setting to activate, but off = by >> default. > > An ini setting is evil for this. People use serialized data as transport > format having that depend on an ini setting is bad. > we already do this (session.serialize_handler, defaults to our own format, but can be set to wddx or igbinary) the userland session handler should be handler agnostic, it shouldn't really break the application if the serialization format change, as the handler should know or care whats inside the $data as long as it can be passed around. but imo this sucks. your handler cannot look into the data, the only available methods for packing and unpacking the session data can only used to read and write the $_SESSION superglobal, so for example if you to load another session for some reason, you have to save the value of the $_SESSION, empty $_SESSION, load the encoded session, call session_decode, fetch the $_SESSION then restore it from your copy. and I really hate that the php session format is almost compatible with serialize/unserialize. if I remember correctly only lacks the a:number_of_items_in_the_session:{} around the session data. why did we did this? to save a few bytes? /o\ sorry for the rant. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu