|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-27 02:48 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 20:00:01 2025 UTC |
When a string statement is not closed correctly in a case statement, the php engine crashes and causes a windows error. Example of the bad code: switch ($oRow["imageAlignment"]) { case 1: $sOutput = "<br>\n" . "$sImageOutput<br>\n" . "$mainContent<br>\n" . break; case 2: $sOutput = "<br>\n" . "$mainContent<br>\n" . "$sImageOutput<br>\n"; break; } Fixing the case 1 statement to terminate the string will fix the crashing error.