Re: [PHP-DEV] wordwrap with negative width

2016-10-16 Thread Yasuo Ohgaki
Hi all, On Sun, Oct 16, 2016 at 5:01 PM, Lauri Kenttä wrote: > Zero width doesn't make sense either, so are you going to remove that as > well? 0 could be included. IMHO. Frankly, I think it should because string could be converted to 0. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Inte

Re: [PHP-DEV] wordwrap with negative width

2016-10-16 Thread Lauri Kenttä
On 2016-10-16 03:28, Stanislav Malyshev wrote: Hi! Keeping the current behavior doesn't really cost anything. Why change it? I think I answered this question several times, including in the email you are quoting! If you disagree, please state the matter of your disagreement, repeating the sam

Re: [PHP-DEV] wordwrap with negative width

2016-10-15 Thread Stanislav Malyshev
Hi! > Keeping the current behavior doesn't really cost anything. > Why change it? I think I answered this question several times, including in the email you are quoting! If you disagree, please state the matter of your disagreement, repeating the same question over and over does not help. > It's

Re: [PHP-DEV] wordwrap with negative width

2016-10-15 Thread Lauri Kenttä
On 2016-10-13 22:39, Yasuo Ohgaki wrote: Hi Stas, Niklas, On Thu, Oct 13, 2016 at 2:13 PM, Stanislav Malyshev wrote: Sorry for the late reply. Why not keep the current behavior + warning? Because current behavior makes no sense, negative length is not really something that exists. I agree

Re: [PHP-DEV] wordwrap with negative width

2016-10-13 Thread Yasuo Ohgaki
Hi Stas, Niklas, On Thu, Oct 13, 2016 at 2:13 PM, Stanislav Malyshev wrote: >> Sorry for the late reply. Why not keep the current behavior + warning? > > Because current behavior makes no sense, negative length is not really > something that exists. I agree Stas. If we consider compatibility, k

Re: [PHP-DEV] wordwrap with negative width

2016-10-12 Thread Stanislav Malyshev
Hi! > Yes, false + warning. > > > Sorry for the late reply. Why not keep the current behavior + warning? Because current behavior makes no sense, negative length is not really something that exists. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] wordwrap with negative width

2016-10-12 Thread Niklas Keller
Stanislav Malyshev schrieb am Di., 4. Okt. 2016, 23:34: > Hi! > > > What does drop mean? Return false and issue a warning? Keep current > > Yes, false + warning. > Sorry for the late reply. Why not keep the current behavior + warning? -- > Stas Malyshev > smalys...@gmail.com >

Re: [PHP-DEV] wordwrap with negative width

2016-10-04 Thread Stanislav Malyshev
Hi! > What does drop mean? Return false and issue a warning? Keep current Yes, false + warning. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] wordwrap with negative width

2016-10-04 Thread Niklas Keller
Yasuo Ohgaki schrieb am Di., 4. Okt. 2016, 04:43: > 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 wor

Re: [PHP-DEV] wordwrap with negative width

2016-10-03 Thread 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 ques

[PHP-DEV] wordwrap with negative width

2016-10-03 Thread Stanislav Malyshev
Hi! 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