I'm trying out the Zend Development Environment 4, and for the most
part I like it, except for two things.
It seems to think certain lines that are perfectly valid are bugs. Like
this:
while ($row_pass = mysql_fetch_arr ay($result_pass )) {
It gives an "Assignment in Condition" error whenever it encounters a
line like that, which is a lot. It gives a little explanation box
giving it a "Category: Bug" and goes on to explain how variables should
go on the right-hand side of an equality statement, and double equals
should be used, like this:
if ($x == "1") {
Yeah, for logicals, but when assigning an array to a mySQL querey, I've
always used
while ($row_pass = mysql_fetch_arr ay($result_pass )) {
and it works perfectly.
Is there a way to get Zend to recognize this, ignore this, or am I
doing something wrong in that line of code I've used for years without
problem?
Thanks!
Oh, the other problem I'm having involves it not being able to connect
to any mySQL database except as root, even if another mySQL account has
full privileges, etc. But I'll deal with this later I guess.
Thanks,
Liam
part I like it, except for two things.
It seems to think certain lines that are perfectly valid are bugs. Like
this:
while ($row_pass = mysql_fetch_arr ay($result_pass )) {
It gives an "Assignment in Condition" error whenever it encounters a
line like that, which is a lot. It gives a little explanation box
giving it a "Category: Bug" and goes on to explain how variables should
go on the right-hand side of an equality statement, and double equals
should be used, like this:
if ($x == "1") {
Yeah, for logicals, but when assigning an array to a mySQL querey, I've
always used
while ($row_pass = mysql_fetch_arr ay($result_pass )) {
and it works perfectly.
Is there a way to get Zend to recognize this, ignore this, or am I
doing something wrong in that line of code I've used for years without
problem?
Thanks!
Oh, the other problem I'm having involves it not being able to connect
to any mySQL database except as root, even if another mySQL account has
full privileges, etc. But I'll deal with this later I guess.
Thanks,
Liam
Comment