From: [EMAIL PROTECTED]
Operating system: n/a
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Documentation of strcspn() and strspn() is incorrect
Description:
------------
As of PHP 4.0B1 both functions are binary safe.
Additionally both functions accept 2 optional integer
parameters that can be used to define the starting position
and the length of the string to examine.
ex.
strspn("foo", "o", 1, 2); == strspn(substr("foo", 1, 2),
"o");
--
Edit bug report at http://bugs.php.net/?id=28798&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28798&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28798&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28798&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28798&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28798&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28798&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28798&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28798&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28798&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28798&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28798&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28798&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28798&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28798&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28798&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28798&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28798&r=float