|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-01-06 16:11 UTC] danillo dot paiva dot toledo at gmail dot com
Description:
------------
$x = 0;
$y = "some_string";
if( $x == 2 ) {
echo "X = 2.<br/>";
echo "Inner first IF";
} elseif ( $x == $y ) {
echo "We are at the elseif condition.";
} else {
echo "I don't know what's X value.";
}
Test script:
---------------
1st - That's my first time using bug report on php.net.
2nd - I'm brazilia(sorry my english).
3rd - I don't know I'm using the correct channel to report this.
I used WAMPServer2.1 to discover this bug.
The current PHP version used on used WAMPServer2.1 is 5.3.5.
This prints "We are at the elseif condition.".
The same happens if the $y value is false.
Expected result:
----------------
Expected result would be: "I don't know what's X value.".
Actual result:
--------------
Actual result would be: "I don't know what's X value.".
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
$x = 0; $y = "some_string"; if( $x == 2 ) { echo "X = 2.<br/>"; echo "Inner first IF"; } elseif ( $x == $y ) { echo "We are at the elseif condition."; } else { echo "I don't know what's X value."; } 1st - That's my first time using bug report on php.net. 2nd - I'm brazilia(sorry my english). 3rd - I don't know I'm using the correct channel to report this. I used WAMPServer2.1 to discover this bug. The current PHP version used on used WAMPServer2.1 is 5.3.5. This prints "We are at the elseif condition.". The same happens if the $y value is false.