php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19834 switch case failure
Submitted: 2002-10-09 12:20 UTC Modified: 2002-10-09 12:44 UTC
From: n dot poulden at ntlworld dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.2.3 OS: Windows XP
Private report: No CVE-ID: None
 [2002-10-09 12:20 UTC] n dot poulden at ntlworld dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 12:29 UTC] n dot poulden at ntlworld dot com
This also seems to be the case with 'if'
 [2002-10-09 12:44 UTC] sander@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 01 20:01:31 2024 UTC