Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60689 invoked from network); 18 Aug 2011 12:25:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Aug 2011 12:25:29 -0000 Authentication-Results: pb1.pair.com header.from=kiall@managedit.ie; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kiall@managedit.ie; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain managedit.ie designates 209.85.210.172 as permitted sender) X-PHP-List-Original-Sender: kiall@managedit.ie X-Host-Fingerprint: 209.85.210.172 mail-iy0-f172.google.com Received: from [209.85.210.172] ([209.85.210.172:48828] helo=mail-iy0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/02-50449-7B40D4E4 for ; Thu, 18 Aug 2011 08:25:28 -0400 Received: by iye7 with SMTP id 7so4352282iye.31 for ; Thu, 18 Aug 2011 05:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=managedit.ie; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Tok4+nXvd//FyMcdN63wmc3hO1cl+QrHP0dX0l6FbRo=; b=AWbkzk6V6YP+uprlnAjl7YCr3VjFVYUaplXLz0YJan+IZoiOIL8EFQICmll5oEHBte V4GCO0cDcBeDbjvAJ1gfnqpXZtWKYCp6V1/TqrrtBf3dWszXSVbh4xKZO+un24Lf7edW ddwQvkEDUL7M75ezgbe7iMO2VcPd0MiWawzQ8= MIME-Version: 1.0 Received: by 10.43.46.65 with SMTP id un1mr770743icb.20.1313670325098; Thu, 18 Aug 2011 05:25:25 -0700 (PDT) Received: by 10.42.171.70 with HTTP; Thu, 18 Aug 2011 05:25:25 -0700 (PDT) Received: by 10.42.171.70 with HTTP; Thu, 18 Aug 2011 05:25:25 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Aug 2011 13:25:25 +0100 Message-ID: To: Paul Dragoonis Cc: Arpad Ray , Roger Llopart Pla , PHP Internals List Content-Type: multipart/alternative; boundary=bcaec52996bb14596604aac6b5ba Subject: Re: [PHP-DEV] Activation of IGBinary serialization extension in 5.4 by default From: kiall@managedit.ie (Kiall Mac Innes) --bcaec52996bb14596604aac6b5ba Content-Type: text/plain; charset=ISO-8859-1 Some others systems use something similar to syntax checking (ldap password hashes). Baisically, prefix a code to the serialized string to indicate what method was used to serialize. Eg no prefix, or $O$ for the old style. Or $I$ for the igbinary syntax. This has the advantage of allowing additional formats to be added over time without breaking BC. Kiall On Aug 18, 2011 12:49 p.m., "Paul Dragoonis" wrote: > On Thu, Aug 18, 2011 at 12:38 PM, Roger Llopart Pla wrote: > >> I agree with bundling it in the core aswell, but having it as default, as >> stated, would be a huge BC break. >> >> 2011/8/18 Arpad Ray >> >>> Hi, >>> >>> On Thu, Aug 18, 2011 at 12:12 PM, Paul Dragoonis >>> wrote: >>> > Hey guys, >>> > >>> > After a brief discussion with Pierre I'm taking this discussion to here. >>> > We have the igbinary pecl extension available [1], however not many of >>> our >>> > userbase are familiar that it even exists. >>> > Here [2] is the performance boost we get from using igbinary with >>> > serialize() and unserialize(). >>> > >>> > Here we get a great perf boost, and what's more excellent as we don't >>> have >>> > to break BC to get there! >>> >>> It would break BC for anyone with serialized strings stored in the >>> current format. >>> >>> Maybe bundle it in core and provide an ini setting like >>> session.serialize_handler, but I don't think making it the default in >>> 5.4 is an option. >>> >> > Sorry guys, I didn't realise there was an actual BC break in the serialized > structure. > I agree with bundling and providing a .ini setting to activate, but off by > default. > > >> >>> Regards, >>> >>> Arpad >>> >>> > >>> > This seems like a no-brainer and a good investment in the speed increase >>> of >>> > PHP by default for the future users of the platform. >>> > >>> > [1] http://pecl.php.net/package/igbinary >>> > [2] http://www.php.net/~pierre/vcqa/apcigninary_perf.png >>> > >>> > Comments please. >>> > >>> > Regards, >>> > Paul Dragoonis. >>> > >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> --bcaec52996bb14596604aac6b5ba--