Re: wordwrap with negative width

From: Date: Tue, 04 Oct 2016 02:43:59 +0000
Subject: Re: wordwrap with negative width
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-96205@lists.php.net to get a copy of this message
On Tue, Oct 4, 2016 at 11:20 AM, Stanislav Malyshev <smalyshev@gmail.com> 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

« previous php.internals (#96205) next »