I have recently started using Zend Studio which has reported as warning the following type of code:
$q = query(\"select * from some_table where some_conditio
This is probably marked as a warning because people often use "=" by mistake when they mean "==".
eg:
$a = 1 while($a = 1) { $a++; }
This will never terminate, though if you thought you'd written "==", it should.