From: echion at joshua dot haninge dot kth dot se Operating system: Linux PHP version: 5.0.0 PHP Bug Type: Documentation problem Bug description: substr_compare documentation paramer sensitivity should be insensitivity?
Description: ------------ The parameter case_sensitivity should probably be named case_insensitivity in the documentation. "int substr_compare ( string main_str, string str, int offset [, int length [, bool case_sensitivity]])" and "If case_sensitivity is TRUE, comparison is case sensitive." Reproduce code: --------------- print substr_compare("abc", "ABC", 0, 3, TRUE); print substr_compare("abc", "ABC", 0, 3, FALSE); Expected result: ---------------- 1 0 Actual result: -------------- 0 1 -- Edit bug report at http://bugs.php.net/?id=29525&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29525&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29525&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29525&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29525&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29525&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29525&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29525&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29525&r=support Expected behavior: http://bugs.php.net/fix.php?id=29525&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29525&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29525&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29525&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29525&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29525&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29525&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29525&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29525&r=float