Re: wordwrap with negative width
| From: | Niklas Keller | Date: | Tue, 04 Oct 2016 07:19:33 +0000 |
| Subject: | Re: wordwrap with negative width | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96208@lists.php.net to get a copy of this message | ||
Yasuo Ohgaki <yohgaki@ohgaki.net> schrieb am Di., 4. Okt. 2016, 04:43:
> 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?
>
What does drop mean? Return false and issue a warning? Keep current
behavior and issue a warning?
Regards, Niklas
It should be a user script bug.
> +1
>
> --
> Yasuo Ohgaki
> yohgaki@ohgaki.net
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>