Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95650 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72226 invoked from network); 5 Sep 2016 15:31:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2016 15:31:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=tendoaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tendoaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.52 as permitted sender) X-PHP-List-Original-Sender: tendoaki@gmail.com X-Host-Fingerprint: 209.85.213.52 mail-vk0-f52.google.com Received: from [209.85.213.52] ([209.85.213.52:34236] helo=mail-vk0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/41-45301-6DF8DC75 for ; Mon, 05 Sep 2016 11:31:34 -0400 Received: by mail-vk0-f52.google.com with SMTP id v189so79307942vkv.1 for ; Mon, 05 Sep 2016 08:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CbhGo3tTeckXvZWBIe2k68VGIthH8RW8cNmvOjCZNJc=; b=vs5M+d85SQZErXI/jyweoS554+AodcChPSitmOt7xXZkeQrG/kLUJnucRxFEIKV5q4 aOYWZ8AzTzn5N67+Tz7ud4ONtqhnOBhw5PUEkAO+uC7npkzpTXHvcC7LalfcuIvyfZr4 kdQaC6XjCesJggxYM0A/HVvi8efIKUeM87xoqzv1lLfHMACd+lGdpvuTYxkrXoK2f40s zSwD+lRJrLB4mblogI+UZcT0NIO+7jgo4jG+4d65qJq1+SFRAWeoevYq4ZiNquxeQ+GD /i1T7cqwKsBBx1x6ycJslqZyxSsDizCATsXsWcYm3Q1DxTnjXUWoLHA3X6T0lAO7rwDZ Dv3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CbhGo3tTeckXvZWBIe2k68VGIthH8RW8cNmvOjCZNJc=; b=S0k0JBAWWeuMdd9g7B2E8JIIQZjrU58BEYsQU5mjRp1vldZOIESAyGD6vF7ng0y705 HqNlAXkG/qWYW4qeyjQBTdNz44nsK4ZcU0Efu832wV0TdZrTeSobZp2mm+N8CwyCkrxn Ii5wqSwoYuoqnW+RK+UpYcec2PvEOXPJtiRC7n3ZWS27QVbuiLS78bR+5lWPhsWgP1HO j09V4vUgGBh6Fn7zqtMPaF5kMxvgdkG6vz748XzwMoe5qWvPiGE1BHqKTksBAIcrGA0X mCHanSz1X/J16+qg5MFSL+M8b23FkTuy/z9hQj+urbPSvx9Xm8T02DPLzfD/ckmctJCG iQPw== X-Gm-Message-State: AE9vXwMcoVGwmlDYGJuoIwhxiJlGEeZ8T5n6m/RmAKX7PRRNs4itqN7kefx33hKiVBIYm46BM/BKRhANINmL3A== X-Received: by 10.31.140.77 with SMTP id o74mr21989391vkd.70.1473089489869; Mon, 05 Sep 2016 08:31:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.130.134 with HTTP; Mon, 5 Sep 2016 08:31:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Sep 2016 11:31:28 -0400 Message-ID: To: Davey Shafik Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11425a32c4206f053bc45ff7 Subject: Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle From: tendoaki@gmail.com (Michael Morris) --001a11425a32c4206f053bc45ff7 Content-Type: text/plain; charset=UTF-8 Please be cautious - composer isn't a complete replacement for PEAR because it doesn't behave the same way. For the most part this is a good thing, but please consider the following. On not one but two occasions I was tasked after being hired with upgrading PHP versions from 4.x to 5.3. In both cases the programmers on staff who had inherited the balls of mud in question swore up and down it couldn't be done - on both occasions it was because they weren't copying the PEAR libraries over to the new PHP install. PEAR is a global installer, and unfortunately I imagine there are a lot of legacy sites that have been inherited by inexperienced coders who don''t know what it is (cause it is used so rarely these days) that have pear libs in use. If they need to build a new version of PHP they are at a complete loss unless they know what they are doing because, more often than not, the requirement of pear libraries in PHP apps that use them go undocumented. Composer is superior for several reasons, but one of them is that it doesn't share this flaw. The requirements of a composer project are listed explicitly in the composer.json file - often down to the version # of the code in question. While abandoning PEAR seems sensible, abandoning its plugins, not so much. To say nothing of PECL extensions which are, if I recall correctly, written in C++ and extend the PHP runtime directly. Also, as Tony Marston pointed out, there are CPanel systems that allow the pear libraries to be managed from a web gui. Given time I'm sure the folks at cpanel will build new interfaces for new systems if it's possible. Composer however doesn't really allow for this since the dependencies belong to the PHP application, not the server. Does it make sense for any new system to allow for server wide installing? Composer does have global requiring, but it's usually for support tools meant for use at the command line like PHP Unit. Despite the misgivings above, I do support the aims of this RFC and hope they are considered going forward. On Fri, Sep 2, 2016 at 3:32 PM, Davey Shafik wrote: > Hi internals, > > I'd like to introduce a new RFC to deprecate pear/pecl (in 7.2, and remove > in 8.0), as well as add composer/pickle (optional in 7.2, default in 7.3+) > in their place. > > https://wiki.php.net/rfc/deprecate-pear-include-composer > > I highly recommend reading the twitter poll and accompanying thread at > https://twitter.com/dshafik/status/756337267547832320 > > I believe that pickle solves the issues with regards to pecl, and have run > the idea passed Jordi and Pierre. Both are fine with this RFC. :) > > I understand that adding in composer/pickle is just setting us up for > having a future "Deprecate composer/pickle & Replace with foo/bar" RFC, so > I've proposed the voting reflect that some people will just want to > deprecate/remove pear/pecl and not replace them at all. > > I'm also proposing voting choices around the optional/default introduction > of composer/pickle. > > - Davey > --001a11425a32c4206f053bc45ff7--