|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-09-24 16:09 UTC] spam2 at rhsoft dot net
[2018-09-24 16:12 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2018-09-24 16:12 UTC] nikic@php.net
[2018-09-25 08:34 UTC] davide dot spagnoli at adam-italia dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
Description: ------------ In a set of conditions evaluated by an "if" block, an assignment is not recognized by next conditions. Test script: --------------- $i=1; if($i++==1 && $i==2){ echo "I'm in"; } // output "I'm in" if($j=1 && $j++==1 && $j==2){ echo "I'm in again"; } // notice "Undefined variable: j" and no output Expected result: ---------------- output: "I'm in" output: "I'm in again" Actual result: -------------- output: "I'm in" notice "Undefined variable: j" and no output