Date: 09/27/01
- Next message: Markus Fischer: "[PHP-DEV] ZEND_MODULE_API_NO in ZE2 [was Re: [PHP-CVS] cvs: php4 /ext/xmlrpc config.m4 /ext/xmlrpc/libxmlrpc acinclude.m4 xmlrpc.h xmlrpc.m4]"
- Previous message: venaas <email protected>: "[PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr."
- In reply to: nayt <email protected>: "[PHP-DEV] Bug #13464: PHP crashes when string not closed in a switch statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 13464
Updated by: mfischer
Reported By: nayt <email protected>
Old Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating System: Windows 2000 Pro
PHP Version: 4.0.4pl1
New Comment:
Cannot reproduce with 4.0.6 and latest CVS.
- Markus
Previous Comments:
------------------------------------------------------------------------
[2001-09-26 21:50:07] nayt <email protected>
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 this bug report at http://bugs.php.net/?id=13464&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Markus Fischer: "[PHP-DEV] ZEND_MODULE_API_NO in ZE2 [was Re: [PHP-CVS] cvs: php4 /ext/xmlrpc config.m4 /ext/xmlrpc/libxmlrpc acinclude.m4 xmlrpc.h xmlrpc.m4]"
- Previous message: venaas <email protected>: "[PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr."
- In reply to: nayt <email protected>: "[PHP-DEV] Bug #13464: PHP crashes when string not closed in a switch statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

