PHP 4.0 Bug #8034: string function (strcspn)
| From: | rottmann at inveris dot de | Date: | Wed, 29 Nov 2000 16:03:40 +0000 |
| Subject: | PHP 4.0 Bug #8034: string function (strcspn) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39591@lists.php.net to get a copy of this message | ||
From: rottmann@inveris.de
Operating system: linux (suse)
PHP version: 4.0.3pl1
PHP Bug Type: Unknown/Other Function
Bug description: string function (strcspn)
why is "string function" not in the Type of bug: list??
<?
$stringvalue = "xy.,.-,z1";
echo strspn (strtolower ($stringvalue), "abcdefghijklmnopqrstuvwxyz0123456789") .
"<br>"; // right
echo strcspn (strtolower ($stringvalue), "abcdefghijklmnopqrstuvwxyz0123456789") .
"<br>"; // wrong
?>
the strspn returns the right value...
but strcpsn returns only the right value when the first digit is not in the 2nd string?!?!? or i did
misunderstand the
function???
--
Edit Bug report at: http://bugs.php.net/?id=8034&edit=1