#19834 [Com]: switch case failure
| From: | n dot poulden at ntlworld dot com | Date: | Wed, 09 Oct 2002 17:29:40 +0000 |
| Subject: | #19834 [Com]: switch case failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21958@lists.php.net to get a copy of this message | ||
ID: 19834
Comment by: n.poulden@ntlworld.com
Reported By: n.poulden@ntlworld.com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows XP
PHP Version: 4.2.3
New Comment:
This also seems to be the case with 'if'
Previous Comments:
------------------------------------------------------------------------
[2002-10-09 12:20:08] n.poulden@ntlworld.com
when performing a switch case on large strings, the function seems to
fail.
for example:
$str="000001011110011110000001000001011110011110000001";
switch($str) {
case "000001011110011110000001000001000111000111011001":
echo "checking: $str - case:
000001011110011110000001000001000111000111011001";
break;
case "000001011110011110000001000001011110011110000001":
echo "checking: $str - case:
000001011110011110000001000001011110011110000001";
break;
}
This will show the error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19834&edit=1