]> granicus.if.org Git - php/commit
Fixed segfault in wordwrap() when wrapping to zero width and using
authorjim winstead <jimw@php.net>
Fri, 4 Jan 2002 19:48:08 +0000 (19:48 +0000)
committerjim winstead <jimw@php.net>
Fri, 4 Jan 2002 19:48:08 +0000 (19:48 +0000)
commitf68b7c5f3ebdde46f4da5db40189bcd36caba033
tree11698645044865e0b6fe44624fed23add8d5fc1c
parent1808802279040ef9f87790ce93433d280079b00b
Fixed segfault in wordwrap() when wrapping to zero width and using
multi-character break or trying to force cut (bug #12768, now fails
and issues a warning because forcing a zero-width cut doesn't make
sense). Also converted to new paramater-passing API and avoid making
an extra copy of the return values.
# also added tests.
@- Fixed segfault in wordwrap() when wrapping to zero width and using
@  multi-character break or trying to force cut (bug #12768). (Jim)
ext/standard/string.c
ext/standard/tests/strings/wordwrap.phpt [new file with mode: 0644]