#33605 [Opn->Csd]: substr_compare crashes

From: Date: Thu, 07 Jul 2005 15:19:51 +0000
Subject: #33605 [Opn->Csd]: substr_compare crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81536@lists.php.net to get a copy of this message
ID: 33605 Updated by: tony2001@php.net Reported By: tomas_matousek at hotmail dot com -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: WinXP PHP Version: 5.1.0b2 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-07-07 16:39:16] tomas_matousek at hotmail dot com substr_count($var, 'a', -7, -1); crashes as well. ------------------------------------------------------------------------ [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

« previous php.bugs (#81536) next »