Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72930 invoked from network); 27 Jun 2013 01:33:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2013 01:33:49 -0000 Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:40897] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/44-51393-B769BC15 for ; Wed, 26 Jun 2013 21:33:48 -0400 Received: by mail-we0-f179.google.com with SMTP id w59so99744wes.38 for ; Wed, 26 Jun 2013 18:33:45 -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=CrwH6MMyXzhLQ3Ykzm4sSXZmSPU43Vb6mXkTazAqaEw=; b=oNXaak0HHbqHL7yYZ8bwKbaTZ0P3XrI6QknFlSU9z1pnjyKI7DG93ZzgVsU+du59c8 RTPiLXyUBm2E3s4lQNR/L5A+7DTJvUTdwD+qUU6x+36xPst6KLuWwVjhDNgm01tIZ6UR iJIAe6wPc/dcs2ogog0nrQLmutbhNuTxfX95P8Wr6LaZX1nYn77AnucSMT4EvOs6pseJ aegnsbtvd2OE544bCz5hqnKoMXNAwe+rbCvcnHg3fakfUqLh3r8aNd6qxfeXKU1jEEq1 p6Kk+yHJeMfC8eV4LcfAsGDNa5F7RqMgvhcu0b6phR5hFNcc8Gt+tSAPOTa2eEwdPw35 8STQ== MIME-Version: 1.0 X-Received: by 10.180.102.36 with SMTP id fl4mr4312143wib.45.1372296825045; Wed, 26 Jun 2013 18:33:45 -0700 (PDT) Received: by 10.227.60.205 with HTTP; Wed, 26 Jun 2013 18:33:44 -0700 (PDT) In-Reply-To: References: Date: Wed, 26 Jun 2013 21:33:44 -0400 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d044481c7c889fd04e018c05d Subject: Re: [PHP-DEV] Re: hex2bin: E_WARNING is too much for odd string? From: theanomaly.is@gmail.com (Sherif Ramadan) --f46d044481c7c889fd04e018c05d Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 26, 2013 at 9:05 PM, Yasuo Ohgaki wrote: > Hi all, > > I've sent pull request for PHP-5.5 branch. > https://github.com/php/php-src/pull/369 > > It's simple 1 liner removes E_WARNING for invalid length. > > Are there any objections? > Yes, I object to removing the error in the same breath we're arguing for consistency. 5.4.0 through 5.4.3 (no error), 5.4.4 through 5.4.16 (error), 5.5.0 (error), 5.5.1 (no error)??? What kind of consistency is this? I thought you wanted to add an extra error for malformed hex, which I would have been fine with, but removing the error entirely? The error is useful. It informs the user that they may have buggy code since the function is clearly documented to expect even length hex encoded strings. > If not I'll merge it to PHP-5.5 and master, then update docs. > > > --f46d044481c7c889fd04e018c05d--