Plugin Bugs item #3180968, was opened at 2011-02-14 17:15
Message generated for change (Settings changed) made by kpouer
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=565475&aid=3180968&group_id=588
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Dac Chartrand (conner_bw)
Assigned to: Nobody/Anonymous (nobody)
Summary: PHPParser 1.3.1: Strange "Unassigned Variable" Warning
Initial Comment:
This is similar to Tracker ID: #3063857 (eroneously closed?) and #3030056
I'm using Using Jedit 4.4pre1. The following code:
<?php
function foo() {
if (true) {
$query = "SELECT * FROM {$foo} WHERE id = ? ";
}
else {
$query = "SELECT * FROM {$foo} WHERE id = ? ";
}
}
?>
Will give an "Unassigned Variable" warning on the first WHERE (but not the second?!)
Thank you for your time.
----------------------------------------------------------------------
Comment By: Dac Chartrand (conner_bw)
Date: 2011-06-18 22:29
Message:
Doh, you are right. I meant {$foo} all along. "I report a variable only
once." was the confusing part. Your explanation makes sense. Please close
the bug.
Regards,
----------------------------------------------------------------------
Comment By: Matthieu Casanova (kpouer)
Date: 2011-06-18 20:37
Message:
That's strange, I have an unassigned variable on $foo, not on where.
It is normal that it is only on the first one, I report a variable only
once.
I just did a fix but I'm not sure it does fix your problem. You can try
the next nightly build that will be available in a few hours.
----------------------------------------------------------------------
Comment By: Dac Chartrand (conner_bw)
Date: 2011-06-18 16:43
Message:
Nope.
I tried with the latest version from the URL you provided (1.3.3 instead
of 1.3.2) and I still have the same problem.
Mac OSX 10.6.7
jEdit 4.4pre1
----------------------------------------------------------------------
Comment By: Matthieu Casanova (kpouer)
Date: 2011-06-17 00:13
Message:
That's strange, and seems to be fixed in trunk, you could try the latest
nightly build
http://www.tellurianring.com/projects/jedit-daily/index.php?dir=PHPParser
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=565475&aid=3180968&group_id=588
|