Bug #13464: PHP crashes when string not closed in a switch statement

From: Date: Thu, 27 Sep 2001 01:50:08 +0000
Subject: Bug #13464: PHP crashes when string not closed in a switch statement
Groups: php.dev 
Request: Send a blank email to php-dev+get-66700@lists.php.net to get a copy of this message
From: nayt@internayt.com Operating system: Windows 2000 Pro PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: PHP crashes when string not closed in a switch statement 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. -- Edit bug report at: http://bugs.php.net/?id=13464&edit=1

« previous php.dev (#66700) next »