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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
11 + 47 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 23:01:29 2024 UTC