ID:               45163
 Updated by:       [EMAIL PROTECTED]
 Reported By:      waps at pisem dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Win Vista x32 Business
 PHP Version:      5.2.6
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to