note 68968 deleted from function.wordwrap by betz
| From: | betz@php.net | Date: | Thu, 17 Aug 2006 19:45:31 +0000 |
| Subject: | note 68968 deleted from function.wordwrap by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116027@lists.php.net to get a copy of this message | ||
Note Submitter: Karl O. Pinc
----
I tried to submit a bug report, but never got a capcha image so could not.
The wordwrap() example is wrong in the docs.
The string 'jumped over the lazy' is 21 characters long, but the example is supposed to
wordwrap at 20 characters.
This is probably because wordwrap() was broken through at least 4.3.6, probably in several different
ways. (See bug # 28386, which is a _different_ problem than the one that shows up in the example
and that I see in 4.1.2, Red Hat version 7.3.6.) It would also be very nice if someone noted the
first PHP version in which wordwrap() actually works.