#46912 [NEW]: poorly choosen/ambigous example

From: Date: Fri, 19 Dec 2008 23:29:11 +0000
Subject: #46912 [NEW]: poorly choosen/ambigous example
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1650@lists.php.net to get a copy of this message
From: scott at thebrain dot ca Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: poorly choosen/ambigous example Description: ------------ Current: $var = strspn("42 is the answer, what is the question ...", "1234567890"); will assign 2 to $var... Index position 2 can be confused with character data '2'. Suggestion: $var = strspn("AB is the answer, what is the question ...", "ABCDEFGHIJ"); will assign 2 to $var... -- Edit bug report at http://bugs.php.net/?id=46912&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46912&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46912&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46912&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46912&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46912&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46912&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46912&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46912&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46912&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46912&r=support Expected behavior: http://bugs.php.net/fix.php?id=46912&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46912&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46912&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46912&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46912&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46912&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46912&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46912&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46912&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46912&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46912&r=mysqlcfg

« previous php.doc.bugs (#1650) next »