ID: 29525 Updated by: [EMAIL PROTECTED] Reported By: echion at joshua dot haninge dot kth dot se -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Linux PHP Version: 5.0.0 New Comment:
This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. You're right, as the purpose of the function states, "... optionally case insensitive". Previous Comments: ------------------------------------------------------------------------ [2004-08-04 16:32:26] echion at joshua dot haninge dot kth dot se 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 this bug report at http://bugs.php.net/?id=29525&edit=1