PHP 4.0 Bug #6935 Updated: wordwrap cut feature does not work
| From: | Bug Database | Date: | Fri, 29 Sep 2000 09:58:42 +0000 |
| Subject: | PHP 4.0 Bug #6935 Updated: wordwrap cut feature does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33837@lists.php.net to get a copy of this message | ||
ID: 6935
Updated by: derick
Reported By: marcswanson@mediaone.net
Status: Closed
Bug Type: *Function Specific
Assigned To:
Comments:
The advanced functionality is only available in the CVS version at this moment.
Previous Comments:
---------------------------------------------------------------------------
[2000-09-29 05:46:11] marcswanson@mediaone.net
The code directly off of the manual page for wordwrap does not work:
<?
$text = "A very long woooooooooooord.";
$newtext = wordwrap( $text, 8, "n", 1);
echo "$newtextn";
?>
Will output:
Warning: Wrong parameter count for wordwrap in /usr/local/apache/htdocs/test.php on line 3
The "normal" wordwrap function without using the "cut" feature (eg using only 2
or 3 arguments such as wordwrap($string,10) or wordwrap($string,10,'n') but NOT
wordwrap($string,10,'n',1) ) will work as described in the manual.
my php compile line:
--with-mysql=/usr/local/mysql -with-apache=/usr/local/apache_1.3.12
This bug was duplicated on 2 different installs of php 4.0.2.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6935