Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35798 invoked from network); 23 Aug 2011 01:11:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2011 01:11:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-yi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:43091] helo=mail-yi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/50-34091-45EF25E4 for ; Mon, 22 Aug 2011 21:11:48 -0400 Received: by yie16 with SMTP id 16so406291yie.29 for ; Mon, 22 Aug 2011 18:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=tcz5o1TiyjaH+0kGdfbenjGi/a5cn4yzUidywC9q9Dk=; b=AFoz0dmN3vCygYAiy/z8XRapFlWI5FOZXXXZFmR8F4+I8SeZrvGo07bPiyERlM7xLh +1P/IK+/uGyoI6wxZ4bBbUg3LFIaGL3DOjI2IgHpOpNAruflAV7TLcGBPI3DPE1xktlf +lcdPQlGrzxLV6jJE7RiBL5+qIwgEESap4Gk8= Received: by 10.101.131.5 with SMTP id i5mr3071145ann.21.1314061904803; Mon, 22 Aug 2011 18:11:44 -0700 (PDT) Received: from [192.168.1.1] (dsl-202-173-152-56.vic.westnet.com.au [202.173.152.56]) by mx.google.com with ESMTPS id e4sm5720603anb.41.2011.08.22.18.11.43 (version=SSLv3 cipher=OTHER); Mon, 22 Aug 2011 18:11:44 -0700 (PDT) Message-ID: <4E52FE4D.4080907@gmail.com> Date: Tue, 23 Aug 2011 11:11:41 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: internals@lists.php.net References: <4E4E48F6.8010107@php.net> <4E51998B.9060301@gmail.com> <4E51A062.6040304@gmail.com> <4E52E64E.4000501@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Activation of IGBinary serialization extension in 5.4 by default From: davidkmuir@gmail.com (David Muir) The gain is that those without the extension can still unserialize the data and read it. It solves the problem discussed where older versions of PHP without IGBinary built in would be locked out from being able to unserialise data. Didn't realise the reply was private. I did a reply-to-list, but Thunderbird picks up your address instead of internals. David On 23/08/11 09:52, Pierre Joye wrote: > then the gain will be zero. By the way, no need to go private to reply :) > > On Tue, Aug 23, 2011 at 1:29 AM, David Muir wrote: >> That still requires the extension. I was referring to a userland >> implementation written in PHP, not C. >> >> Cheers, >> David >> >> On 22/08/11 17:21, Pierre Joye wrote: >>> PHP_FE(igbinary_serialize, arginfo_igbinary_serialize) >>> PHP_FE(igbinary_unserialize, arginfo_igbinary_unserialize) >>> >>> On Mon, Aug 22, 2011 at 2:18 AM, David Muir wrote: >>>> On 08/22/2011 10:07 AM, Pierre Joye wrote: >>>>> On Mon, Aug 22, 2011 at 1:49 AM, David Muir wrote: >>>>> >>>>>> Why not provide a userland fallback? >>>>>> >>>>>> eg: /IGBinary/unserialize() >>>>>> >>>>>> It could unserialize the string, albeit slowly, but still give you >>>>>> access to the data without needing the extension. At least that way you >>>>>> have something rather than nothing. >>>>> igbinary has functions for that already. >>>>> >>>> It does? I didn't see it in the docs, or in the git tree. >>>> >>>> Cheers, >>>> David >>>> >>> >> > >