#24367 [NEW]: strspn('rRc', 'R') returns 0
| From: | php at projectjj dot com | Date: | Fri, 27 Jun 2003 20:21:30 +0000 |
| Subject: | #24367 [NEW]: strspn('rRc', 'R') returns 0 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-42651@lists.php.net to get a copy of this message | ||
From: php at projectjj dot com
Operating system: Windows 2k SP3
PHP version: 4.3.2
PHP Bug Type: Strings related
Bug description: strspn('rRc', 'R') returns 0
Description:
------------
echo strspn('rRc', 'R'); // returns 0
echo strspn('Rrc', 'R'); // returns 1
Shouldn't both of these return 1?
Reproduce code:
---------------
echo strspn('rRc', 'R');
Expected result:
----------------
1
--
Edit bug report at http://bugs.php.net/?id=24367&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24367&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24367&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24367&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24367&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24367&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24367&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24367&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24367&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24367&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24367&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24367&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24367&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24367&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24367&r=gnused