**********************************************************************/
import junit.framework.TestCase;
-import test.PHPParser2;
-import test.ParseException;
import java.io.CharArrayReader;
import java.io.InputStream;
-import net.sourceforge.phpeclipse.phpeditor.phpparser.PHPParser;
+
import org.eclipse.core.runtime.CoreException;
/**
checkPHP("/* \n overLib is from Eric Bosrup (http://www.bosrup.com/web/overlib/) \n */");
checkPHP("if ($arrAtchCookie[1]==0 && $IdAtchPostId!=null){ } ");
checkPHP("$arrAtchCookie[1] -= filesize(realpath($AtchTempDir).\"/\".$xattachlist)/ 1024; ");
- checkPHP("do {$array[] = array(\"$myrow[uid]\" => \"$myrow[uname]\"); } while($myrow = mysql_fetch_array($result));");
checkPHP("$ol = new Overlib();");
checkPHP("$risultato = mysql_query($sql) or\n die(mysql_error());");
checkPHP(
checkPHP("while (eregi(\"footer.php\",$PHP_SELF)) {\n" + "Header(\"Location: index.php\");\n" + "die();\n" + "}\n");
checkPHP("while (eregi(\"footer.php\",$PHP_SELF)) :\n" + "Header(\"Location: index.php\");\n" + "die();\n" + "endwhile;\n");
checkPHP("if ($term{0}!=$firstChar) {}");
- checkPHP("$this->highlightfile->linkscripts{$category}");
- checkPHP("$code = call_user_method($this->highlightfile->linkscripts{$category}, $this->highlightfile, $oldword, $this->output_module)");
+ checkPHP("$this->highlightfile->linkscripts{$category};");
+ checkPHP("$code = call_user_method($this->highlightfile->linkscripts{$category}, $this->highlightfile, $oldword, $this->output_module);");
checkPHP("call_user_method_array($function_name[1], ${$objectname}, $arguments);");
- checkPHP("global ${$objectname}; ");
+ checkPHP("global ${$objectname};");
+ checkPHP("do {$array[] = array(\"$myrow[uid]\" => \"$myrow[uname]\"); } while($myrow = mysql_fetch_array($result));");
}
private void checkPHP(String strEval) {
try {
+ System.out.println("strEval = " + strEval);
phpparser.ReInit(new CharArrayReader(strEval.toCharArray()));
phpparser.parse();
} catch (ParseException e) {