Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50950 invoked from network); 22 Mar 2016 19:34:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2016 19:34:00 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:33560] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/24-30596-72E91F65 for ; Tue, 22 Mar 2016 14:34:00 -0500 Received: by mail-ob0-f170.google.com with SMTP id xj3so39852576obb.0 for ; Tue, 22 Mar 2016 12:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=GzVxudSeVXTEHZourFLmO7Lz+0EQRsHIIuVZijMX7cU=; b=bpNQNGsXqOyCY+Z0osHchLWCGqMrfzinBnZQZiO+UvOyQjUNxAKh4Bqus3WOHNNdm4 82/hr95eucF6VK8B5zfkw8ul6fQomOn7qv24EkWl3ZNaeEF2Wvaa+AJn3lsnOkW367t5 ShL6MH76z1vJTlcddW09zYJ+GoGBTYgY9Nl18= 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:date :message-id:subject:from:to:cc; bh=GzVxudSeVXTEHZourFLmO7Lz+0EQRsHIIuVZijMX7cU=; b=cBQ2I5D/6ZmIZsxgVSgQMTsfPQ5HUSSgmHYJ6UyH1bc+UG92kXe4Ygw+SToay4BHBd gxlhvLImJhYHYJ7Su4ifjhRlQ3J6cUsZ+ZJzEqxmXj5B1OPQ5WBHCHxfcNeayDMA2X7H pH9JZh3F0ROza3rUFPuW5ka1PfLN9VWlFDzyal6UIFJ5zjlcvkzv5JUlVJ3PKnKOLN2c /lrv9T+TTB4yO5tcZ0rwtcb/z7i6zZTo8XnZsfvqeFP+BJAOVIQUY57A7PHkuYp/p0Nn ga5LliRpQ4eoi//lIwSQm8eoMTRdHmvrrVYk8L5qAR+D/rPclDq67fa0jZH2QFy8oby5 zT7w== X-Gm-Message-State: AD7BkJKuXxt7qnflbdrK6r9s9BaVhYDqun+m1/sZgHYx3NK5iuByGe/X57OKeqEG5aXoT/HpyK+YDqU3keexUw== MIME-Version: 1.0 X-Received: by 10.182.81.9 with SMTP id v9mr21382301obx.44.1458675236134; Tue, 22 Mar 2016 12:33:56 -0700 (PDT) Received: by 10.202.175.74 with HTTP; Tue, 22 Mar 2016 12:33:56 -0700 (PDT) In-Reply-To: <56F19BB9.7030703@gmail.com> References: <56F19BB9.7030703@gmail.com> Date: Tue, 22 Mar 2016 21:33:56 +0200 Message-ID: To: Stanislav Malyshev Cc: Scott Arciszewski , Nikita Popov , PHP Internals Content-Type: multipart/alternative; boundary=047d7b2e41da4afaf6052ea84b65 Subject: Re: [PHP-DEV] [RFC][VOTE] Deprecate then Remove Mcrypt Closed (23-6) From: narf@devilix.net (Andrey Andreev) --047d7b2e41da4afaf6052ea84b65 Content-Type: text/plain; charset=UTF-8 Hi, On Tue, Mar 22, 2016 at 9:23 PM, Stanislav Malyshev wrote: > Hi! > > > be in the spirit of what was voted on to keep it (at least as an alias > for > > random_bytes()). However, that was not covered by what everyone voted > for. > > How would you like to proceed? > > I'd say keep it - either as an alias of as a function, doesn't matter. > It looks like common sense BC measure and doesn't seem to hurt anything. > If we'll be moving whole extension out to PECL, we could keep this > particular function as an alias. > > While keeping it as an alias wouldn't be the worst thing ... I disagree, exactly because the whole extension is moved to PECL. mcrypt isn't an extension enabled by default and I'm yet to see a piece of code that doesn't do one of the following checks before calling mcrypt_create_iv(): - function_exists('mcrypt_create_iv') - extension_loaded('mcrypt') - defined('MCRYPT_DEV_URANDOM') // or another MCRYPT_* constant Unless of course it's a part of a library that explicitly depends on ext/mcrypt being enabled. So ... I don't see this alias really helping more than a handful of people. Cheers, Andrey. --047d7b2e41da4afaf6052ea84b65--