Bug #13419: strtok doesn't properly work with "#" as a token
| From: | curious at curious dot org | Date: | Mon, 24 Sep 2001 19:29:54 +0000 |
| Subject: | Bug #13419: strtok doesn't properly work with "#" as a token | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-66486@lists.php.net to get a copy of this message | ||
From: curious@curious.org
Operating system: linux 2.4.9 (debian unstable)
PHP version: 4.0.6
PHP Bug Type: Strings related
Bug description: strtok doesn't properly work with "#" as a token
in the following code:
$string = "#This is an example string";
$tok1 = strtok($string,"#");
$tok1 should equal nothing.. however it equals $string
This bug breaks ACID:
http://www.cert.org/kb/acid/
people on IRC have verified that this bug is also in CVS as of this report
--
Edit bug report at: http://bugs.php.net/?id=13419&edit=1