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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: n dot poulden at ntlworld dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 23:00:02 2025 UTC