mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixing bug 8061. Position counter starts a 0 but was compared with length.
This commit is contained in:
parent
744f1a34ef
commit
518ab3c62f
@ -287,7 +287,7 @@ PHP_FUNCTION(wordwrap)
|
||||
}
|
||||
l++;
|
||||
}
|
||||
if (l > linelength) {
|
||||
if (l >= linelength) {
|
||||
pgr = l;
|
||||
l = linelength;
|
||||
/* needs breaking; work backwards to find previous word */
|
||||
|
Loading…
Reference in New Issue
Block a user