Merge pull request '修复 while do...while和if中的判断是赋值导致的C++编译警告的问题' (#3) from condition_assign into master
Reviewed-on: #3pull/4/head
commit
036e2befc4
2 changed files with 17 additions and 3 deletions
@ -0,0 +1,12 @@ |
|||||||
|
--TEST-- |
||||||
|
condition assign |
||||||
|
--FILE-- |
||||||
|
<?php |
||||||
|
function main() { |
||||||
|
if ($value = true) { |
||||||
|
echo "success"; |
||||||
|
} |
||||||
|
} |
||||||
|
?> |
||||||
|
--EXPECT-- |
||||||
|
success |
||||||
Loading…
Reference in new issue