Bug #1282 Updated: strtok ignores zero's
| From: | Bug Database | Date: | Thu, 01 Apr 1999 23:13:18 +0000 |
| Subject: | Bug #1282 Updated: strtok ignores zero's | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4877@lists.php.net to get a copy of this message | ||
ID: 1282
Updated by: rasmus
Reported By: mf@swissmail.com
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
No bug here. You are effectively doing a while(0) in that loop when $tok is 0. What you are really
interested in is when you have a zero-length string. So change your while loop to something like:
while(strlen($tok))
Full Bug description available at: http://ca.php.net/bugs.php3?id=1282
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net