#1354 PHPParser 1.3.1: Bizarre "Unassigned Variable" Warning

closed-fixed
None
9
2010-10-12
2010-09-10
No

PHPParserPlugin version 1.3.1

With the the following code, I get four incorrect "Unassigned Variable" warnings in the function foo():

The same code, outside the scope of the function, works fine.

<?php

$query .= "FROM {$this->db_table_doc}
INNER JOIN {$this->db_table_cat} ON {$this->db_table_doc}.bayes_categories_id = {$this->db_table_cat}.id
WHERE {$this->db_table_cat}.id = ? ";

function foo() {

$query .= "FROM {$this->db_table_doc}
INNER JOIN {$this->db_table_cat} ON {$this->db_table_doc}.bayes_categories_id = {$this->db_table_cat}.id
WHERE {$this->db_table_cat}.id = ? ";

}

?>

Help?

Discussion

  • Dac Chartrand

    Dac Chartrand - 2010-10-12
    • priority: 5 --> 9
     
  • Matthieu Casanova

    Fixed in trunk

     
  • Matthieu Casanova

    • assigned_to: nobody --> kpouer
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks