php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6011 switch() dont go in default: if the switch is empty except default:
Submitted: 2000-08-07 18:12 UTC Modified: 2000-08-11 18:01 UTC
From: marc at dmh dot qc dot ca Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.1pl2 OS: Mandrake 7.1 i686
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: marc at dmh dot qc dot ca
New email:
PHP Version: OS:

 

 [2000-08-07 18:12 UTC] marc at dmh dot qc dot ca
In this example, if $part is empty, the default: will be process, but if it have something in it, It dont do nothing, it skip the default: and continue


switch ($part) {
  default:
    include ( "html/menu-main-html.inc" );
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-10 08:04 UTC] sniper@php.net
Same problem as in bug #5879

--Jani
 [2000-08-11 18:01 UTC] sniper@php.net
Fixed in CVS.

--Jani

(for php-dev: Are these duplicates to be closed when the original is closed??)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 09:00:02 2026 UTC