Package: rats Version: 2.1-5 Priority: normal Tags: wishlist RATS misses some PHP files if they do not end with .php, since some files end up with different extensions (php3, php4), the attached patch fixes this.
Regards Javier
--- engine.c.orig 2006-05-17 00:32:44.000000000 -0500
+++ engine.c 2006-05-17 00:31:47.000000000 -0500
@@ -928,7 +928,9 @@
setup_python(fd);
else if (!strcasecmp(dot, ".pl") || !strcasecmp(dot, ".pm"))
setup_perl(fd);
- else if (!strcasecmp(dot, ".php"))
+ else if (!strcasecmp(dot, ".php")||
+ !strcasecmp(dot, ".php3")||
+ !strcasecmp(dot, ".php4"))
setup_php(fd);
else if (!strcasecmp(dot, ".c")||
!strcasecmp(dot, ".c++")||
signature.asc
Description: Digital signature

