scheck does not recognize local variables defined in foreach loops #10

Closed
miaubiz opened this Issue Feb 17, 2011 · 2 comments

Projects

None yet

2 participants

@miaubiz
miaubiz commented Feb 17, 2011

./scheck foreach.php
foreach.php:4:4: CHECK:Unused Local variable $x
foreach.php:10:4: CHECK:Unused Local variable $p
foreach.php:7:17: CHECK:Use of undefined variable $x
foreach.php:13:17: CHECK:Use of undefined variable $p

php foreach.php
ok: 2
ok: 2
ok: 2

@aryx
Member
aryx commented Feb 19, 2011

thx. This should be fixed by:
5a8547a

@miaubiz
miaubiz commented Feb 22, 2011

thank you for the quick fix.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment