Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84442 invoked from network); 24 Sep 2014 00:39:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2014 00:39:30 -0000 Authentication-Results: pb1.pair.com header.from=park.framework@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=park.framework@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.175 as permitted sender) X-PHP-List-Original-Sender: park.framework@gmail.com X-Host-Fingerprint: 209.85.214.175 mail-ob0-f175.google.com Received: from [209.85.214.175] ([209.85.214.175:35731] helo=mail-ob0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/91-02052-1C212245 for ; Tue, 23 Sep 2014 20:39:29 -0400 Received: by mail-ob0-f175.google.com with SMTP id m8so5702796obr.34 for ; Tue, 23 Sep 2014 17:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6kdzFFbNp8gumlhaiCCzfAyBHc/ZFb3Rz22VR4t/B6g=; b=eylqNd+ST6Che7LavdfIb6adD6eeA7/C8J4DmNTwJ7b2Npnag589DkJM9OTYABHusd hmTe8bDdBBnYvEE7YqLnJAYPjg7xrpKDDLZLYwfpxKOvxgoliz/Dxke9OzqERWslRvil nNnpilGPMhsyrFYF2vpUoz2T2uLlolVS1i+3rxhYpbhMxVrvjJleZjY6EO5TmhnvWqia Et7sualnWdOwjj2ZBGtmt3rcmDRVUfqjcx/LPno1bxPQ+dDIyJQKYjULFwukSCRy9RNz cHFFhLZqylbOCSNePbRbNRL1DaJYtEAQd5y/DZqU0lAdymSdJAHWOXgrdCLM4GkBIRrd vxvQ== MIME-Version: 1.0 X-Received: by 10.60.161.68 with SMTP id xq4mr2948248oeb.84.1411519167069; Tue, 23 Sep 2014 17:39:27 -0700 (PDT) Received: by 10.76.23.37 with HTTP; Tue, 23 Sep 2014 17:39:26 -0700 (PDT) In-Reply-To: <54220A65.7080303@sugarcrm.com> References: <5421EB4A.4000101@sugarcrm.com> <54220A65.7080303@sugarcrm.com> Date: Wed, 24 Sep 2014 03:39:26 +0300 Message-ID: To: Stas Malyshev Cc: Paul Dragoonis , Pierre Joye , Leigh , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Improve PHP 7 serialization From: park.framework@gmail.com (Park Framework) I agree, you're right. My desire to override the existing algorithm serialize(), due to the need to change the method serialization, but does not change the source code (legacy code, ext PHP) 2014-09-24 3:03 GMT+03:00 Stas Malyshev : > Hi! > >> Perhaps a compromise would be to choose the quickest method of >> serialization, add it to PHP core. >> >> In php.ini add the directive >> serialization.method = msgpack / Igbinary / .... > > We could, but what if you need to read/write data specifically from > current PHP serializer? You'd have to mess then with runtime directives, > it doesn't look like a good design. That's like having one db_query() > function for all databases and have a config parameter that switches the > global database type. I think the other option is better - to have > extensions for all underlying functions and abstraction layer (PDO or > userspace) that provides unified API if needed. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/