ID: 45163
User updated by: waps at pisem dot net
Reported By: waps at pisem dot net
Status: Open
Bug Type: Scripting Engine problem
Operating System: Win Vista x32 Business
PHP Version: 5.2.6
New Comment:
<?php
$strCode = 0;
switch( $strCode )
{
case 'jpg':
case 'jpeg':
echo 'point 0';
break;
case 'gif':
echo 'point 1';
break;
default:
echo 'point 3';
}
?>
Previous Comments:
------------------------------------------------------------------------
[2008-06-13 19:12:20] waps at pisem dot net
Old excampe incorrected!
This excemple correct:
$strCode = 0;
switch( $strCode )
{
case 'jpg':
case 'jpeg':
echo 'point 0';
break;
case 'gif':
echo 'point 1';
break;
default:
echo 'point 3';
}
------------------------------------------------------------------------
[2008-06-13 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-06-05 18:10:11] [EMAIL PROTECTED]
Please provide a script that has some possibility to work, logically
too. A proper reproducing script starts with <?php and ends with ?>, is
no longer than 20 lines and is self-contained in every way.
------------------------------------------------------------------------
[2008-06-04 05:36:31] waps at pisem dot net
Description:
------------
SWITCH statement incorrect work from data types. In exemple I write
code.
Reproduce code:
---------------
$strCode = 0;
switch( $strFileType )
{
case 'jpg':
case 'jpeg':
echo 'point 0';
break;
case 'gif':
echo 'point 1';
break;
default:
echo 'point 3';
}
Expected result:
----------------
echo string "point 0"
Actual result:
--------------
I have to view "point 3", but no "point 0"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45163&edit=1