PHP 4.0 Bug #5208: Can't tokenize string when delimiter is first character.
| From: | Maxwell_Smart at ThePentagon dot com | Date: | Fri, 23 Jun 2000 20:22:08 +0000 |
| Subject: | PHP 4.0 Bug #5208: Can't tokenize string when delimiter is first character. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-22093@lists.php.net to get a copy of this message | ||
From: Maxwell_Smart@ThePentagon.com
Operating system: Linux (Debian\\Woody)
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Scripting Engine problem
Bug description: Can't tokenize string when delimiter is first character.
$tok=strtok(",a,b,c,d", ",");
while($tok)
{
echo $tok;
$tok = strtok(",");
}
Remove the first comma and it will work.