php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30747 PHP5 Windows Version Crash Problem
Submitted: 2004-11-10 15:42 UTC Modified: 2004-11-10 15:46 UTC
From: sami at sipponen dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.0.2 OS: Windows XP
Private report: No CVE-ID: None
 [2004-11-10 15:42 UTC] sami at sipponen dot com
Description:
------------
PHP5 Windows crashes if I execute the code below: (not tested with *nix version of PHP)

<?
$_GET["search_type"] = 1;
switch ($_GET["search_type"]) {  
  case 1:
    function sqlWhere() {
    }
    sqlWhere();
  }
?>

Reproduce code:
---------------
<?
$_GET["search_type"] = 1;
switch ($_GET["search_type"]) {  
  case 1:
    function sqlWhere() {
    }
    sqlWhere();
  }
?>

Expected result:
----------------
This example code won't actually do nothing.

Actual result:
--------------
Crash...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-10 15:46 UTC] tony2001@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Duplicate of #29944.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Dec 02 23:00:01 2025 UTC