Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68399 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70487 invoked from network); 7 Aug 2013 13:21:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Aug 2013 13:21:32 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.173 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.128.173 mail-ve0-f173.google.com Received: from [209.85.128.173] ([209.85.128.173:63410] helo=mail-ve0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/58-06453-CD942025 for ; Wed, 07 Aug 2013 09:21:32 -0400 Received: by mail-ve0-f173.google.com with SMTP id cy12so1756426veb.32 for ; Wed, 07 Aug 2013 06:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=NBXOH5R0TS6eiG/xoNdW2Gq8pUJJ8ZmS5y24rK9i4HE=; b=GQJyOwANQyYuP8ZMcPp72PYFsmo1s3EeaHbJtuYvXizfPVOsRRMADY3zk3iV+L5jqC K9nNh9hKJGlKiEYSiwEQZRxhOFOPiBmLbD/tILtQECmvqBdGytpdqD2Qr0jHVyfgYukt VAKpg541b79CjLIiK7zzx7qFd8K/pP+pp3gJZ/JjMtK0NovUbaQ2juT3wq7bBGniVVBs njndew5Bz7seq7DuDjbr5LjgpW+sTRSNO5Ndg2CENPPdZKdSB9xRH4p7HnH5gduLVO2P mBbZwlC0kMBgNv0bsTba9IFIrSOxBsfaSBEpIIayhOfBplizBxCGoi76/NtBR9SnOAz5 8qbw== MIME-Version: 1.0 X-Received: by 10.220.88.13 with SMTP id y13mr1230604vcl.20.1375881690114; Wed, 07 Aug 2013 06:21:30 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.58.200.104 with HTTP; Wed, 7 Aug 2013 06:21:30 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Aug 2013 15:21:30 +0200 X-Google-Sender-Auth: InLzjrekMSPy0L2XvbVrZehCWH8 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] crypt() should raise error without 2nd parameter From: kalle@php.net (Kalle Sommer Nielsen) Hi Yasuo 2013/8/7 Yasuo Ohgaki : > Hi all, > > A user requested that crypt() should raise error without 2nd(slat) > parameter. > > https://bugs.php.net/bug.php?id=55036 > > crypt() without salt generates extremely weak password hash. In addition to > this, > PHP 5.5 has password_hash() > > This change should be applied from 5.5, IMHO. This is a BC break, as the second parameter as noted is optional, while I believe we can do it in 5.5, I don't think it is worth the effort, neither to put a notice or similar (E_STRICT even), if the second parameter is left out, and it should go in master instead which I'm in favor of. -- regards, Kalle Sommer Nielsen kalle@php.net