php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57415 Nested switch statement crashes PHP
Submitted: 2006-12-05 09:13 UTC Modified: 2006-12-13 12:34 UTC
From: dpenning at gamona dot de Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5_2 CVS-2006-12-05 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: dpenning at gamona dot de
New email:
PHP Version: OS:

 

 [2006-12-05 09:13 UTC] dpenning at gamona dot de
Description:
------------
Nested switch statements cause PHP to crash whenever the file is loaded from APC-Cache.

Reproduce code:
---------------
<?php
switch (1) {default: switch (1) {default: break;} }
die('1');
?>

Expected result:
----------------
1

Actual result:
--------------
crash

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-07 04:54 UTC] gopalv82 at yahoo dot com
I tested this with a latest APC+PHP_5_2 build on linux-amd64 - No crash.

I'll see if I can get a windows box sometime in the near future.
 [2006-12-13 12:34 UTC] dpenning at gamona dot de
The bug seems to be fixed in today's windows-build.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 14:00:02 2025 UTC