#29525 [NEW]: substr_compare documentation paramer sensitivity should be insensitivity?

From: Date: Wed, 04 Aug 2004 14:32:28 +0000
Subject: #29525 [NEW]: substr_compare documentation paramer sensitivity should be insensitivity?
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969362619@lists.php.net to get a copy of this message
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

« previous php.doc (#969362619) next »