Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14617 invoked from network); 28 Jun 2012 08:45:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2012 08:45:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:47576] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/B6-08168-5A91CEF4 for ; Thu, 28 Jun 2012 04:45:25 -0400 Received: by ggnf2 with SMTP id f2so1929131ggn.29 for ; Thu, 28 Jun 2012 01:45:23 -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:content-transfer-encoding; bh=QeMQ6e7TQ6RMRpM67icDIwtEDUbKS2O+x2yaj7nIS5U=; b=HtMrngHbIRkU8ucNITH/049L/mNM77RafPaKUWLKQDvD/MpHiNbfHdEcD5uOXUtf2p FLamZTGQ56dwJdibQBD424+lFK3EC9HMVR+VZfNV8nd837Bq0NvWhJC/y087RcX78sUq Vtp53hgU22QqDO0b7chiJINcPneo4gCEQCX2ZXjuZrrM8PXNq3OWrVCj2/08y8+3u0pv 6FEX9WfiIJnAhMcwOEb1CBaCxBQUGDj3DqvZ4yRSbe8G7b+jQRD+bCOfXMVNSepCufsY 16uABqv87byspfzoFrn5LsET0vg+MDItMwbruwK0yDm6ZEDdvNs7cWV+7HovWn26SL9C 2/RQ== MIME-Version: 1.0 Received: by 10.236.186.72 with SMTP id v48mr1745347yhm.18.1340873123026; Thu, 28 Jun 2012 01:45:23 -0700 (PDT) Received: by 10.147.113.7 with HTTP; Thu, 28 Jun 2012 01:45:22 -0700 (PDT) In-Reply-To: References: <1340815507.2802.9.camel@guybrush> Date: Thu, 28 Jun 2012 10:45:22 +0200 Message-ID: To: Anthony Ferrara Cc: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API From: pierre.php@gmail.com (Pierre Joye) Hi Anthony! On Thu, Jun 28, 2012 at 4:00 AM, Anthony Ferrara wrot= e: > Hrm. Well, then I guess I could re-implement against crypt internally. > That would take either a slight re-implementation of the crypt() > internals, or slight refactoring of the PHP_FUNCTION(crypt) function > to enable c calls to it (even if it's disabled). We would have to expose the crypt implementation, it is not the case right now. But you could still use it using func call. Let me know if you need to expose it and which parts, we will need to refactor it a bit (which should be a good thing to do anyway). > I don't like the concept of core functions disappearing if they are > not implemented. Well, that's the case for extensions altogether so... :) However if I remember correctly, I made crypt always available from php 5.3 and later, for all algorithms. >> =A0 =A0E_WARNING - When supplied an incorrect number of arguments. >> =A0 =A0E_WARNING - When supplied a non-string first parameter (password) I would not use warnings at all but return false on error. Maybe add an argument or a function to fetch the error messages. In case you call other PHP functions, you can push/pop the errors easily as well. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org