ID: 33605 User updated by: tomas_matousek at hotmail dot com Reported By: tomas_matousek at hotmail dot com Status: Open Bug Type: Reproducible crash Operating System: WinXP PHP Version: 5.1.0b2 New Comment:
substr_count($var, 'a', -7, -1); crashes as well. Previous Comments: ------------------------------------------------------------------------ [2005-07-07 16:37:32] tomas_matousek at hotmail dot com Description: ------------ substr_compare can crash. Reproduce code: --------------- substr_compare("abcde", "abc", -PHP_INT_MAX, 0) Expected result: ---------------- ? Actual result: -------------- crash ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33605&edit=1