php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7140 switch() problem
Submitted: 2000-10-11 15:30 UTC Modified: 2000-10-11 15:51 UTC
From: zozo at iaeste dot vein dot hu Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.3RC1 OS: linux
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: zozo at iaeste dot vein dot hu
New email:
PHP Version: OS:

 

 [2000-10-11 15:30 UTC] zozo at iaeste dot vein dot hu
When i use switch(), without any case, just a default way, php segfaults.
I tried:
switch ($func) {
    default: print "qwerqrew";
}

$func was undefined.

My system is a Debian Linux 2.2 "potato".

PHP Version 4.0b3
System: Linux thunderchild 2.2.14-smp #1 SMP Thu Jan 27 02:58:56 CET 2000 i686 unknown
Build Date: Apr 9 2000 
php.ini path: /etc/php4/apache
ZEND_DEBUG=1
ZTS is undefined

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-11 15:51 UTC] stas@php.net
You are using 4.0b3, not 4.0.3. This is old version, and old bug, which is fixed long ago. Please upgrade.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 07:00:01 2026 UTC