Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96205 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4184 invoked from network); 4 Oct 2016 02:44:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2016 02:44:53 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:42961] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/FA-06241-2A713F75 for ; Mon, 03 Oct 2016 22:44:51 -0400 Received: (qmail 106425 invoked by uid 89); 4 Oct 2016 02:44:46 -0000 Received: from unknown (HELO mail-qt0-f174.google.com) (yohgaki@ohgaki.net@209.85.216.174) by 0 with ESMTPA; 4 Oct 2016 02:44:46 -0000 Received: by mail-qt0-f174.google.com with SMTP id f6so32741001qtd.2 for ; Mon, 03 Oct 2016 19:44:45 -0700 (PDT) X-Gm-Message-State: AA6/9RnYACdN9szIycmA1Fnl+U6htlu4dzoewN0dNJHvJSAE3ggF52UFaKgc2ozhuljLKwafdfEVsIWD44AOvQ== X-Received: by 10.237.42.195 with SMTP id t61mr1309167qtd.11.1475549079714; Mon, 03 Oct 2016 19:44:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.84.168 with HTTP; Mon, 3 Oct 2016 19:43:59 -0700 (PDT) In-Reply-To: <12ecd7d8-2c72-d835-a1af-20698ee9885c@gmail.com> References: <12ecd7d8-2c72-d835-a1af-20698ee9885c@gmail.com> Date: Tue, 4 Oct 2016 11:43:59 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Stanislav Malyshev Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] wordwrap with negative width From: yohgaki@ohgaki.net (Yasuo Ohgaki) On Tue, Oct 4, 2016 at 11:20 AM, Stanislav Malyshev wrote: > I've just discovered that wordwrap() (http://php.net/wordwrap) accepts > negative width parameter and treats it as if it was 0. It looks like a > bug, never documented and works in code only by accident as far as I can > see. So, my question is - would it be OK to drop support for negative > width in wordwrap? It should be a user script bug. +1 -- Yasuo Ohgaki yohgaki@ohgaki.net