#33605 [Opn]: substr_compare crashes
| From: | tomas_matousek at hotmail dot com | Date: | Thu, 07 Jul 2005 14:39:16 +0000 |
| Subject: | #33605 [Opn]: substr_compare crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81535@lists.php.net to get a copy of this message | ||
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