#29034 [Opn->Csd]: wordwrap() returns boolean when given an empty string
| From: | iliaa@php.net | Date: | Tue, 06 Jul 2004 22:17:40 +0000 |
| Subject: | #29034 [Opn->Csd]: wordwrap() returns boolean when given an empty string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61818@lists.php.net to get a copy of this message | ||
ID: 29034
Updated by: iliaa@php.net
Reported By: michaels at crye-leike dot com
-Status: Open
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 4.3.7
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-07-06 18:59:03] michaels at crye-leike dot com
Description:
------------
The wordwrap() function returns a boolean when given an empty string as
the first parameter. If the string is not empty, a string is returned
as indicated by the documentation.
Reproduce code:
---------------
print gettype(wordwrap(''))."\n";
Expected result:
----------------
string
Actual result:
--------------
boolean
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29034&edit=1