-@@ -759,6 +764,10 @@
- if (is_executable)
- xx = rpmfcHelper(fc, 'R', "executable");
- }
-+ if (fc->fcolor->vals[fc->ix] & RPMFC_PHP) {
-+ xx = rpmfcHelper(fc, 'P', "php");
-+ xx = rpmfcHelper(fc, 'R', "php");
-+ }
-
- return 0;
- }
-@@ -835,7 +844,7 @@
- /*@unchecked@*/
- static struct rpmfcApplyTbl_s rpmfcApplyTable[] = {
- { rpmfcELF, RPMFC_ELF },
-- { rpmfcSCRIPT, (RPMFC_SCRIPT|RPMFC_PERL|RPMFC_PYTHON|RPMFC_LIBTOOL|RPMFC_PKGCONFIG|RPMFC_BOURNE|RPMFC_JAVA) },
-+ { rpmfcSCRIPT, (RPMFC_SCRIPT|RPMFC_PERL|RPMFC_PYTHON|RPMFC_LIBTOOL|RPMFC_PKGCONFIG|RPMFC_BOURNE|RPMFC_JAVA|RPMFC_PHP) },
- { NULL, 0 }
- };
-
-@@ -1027,6 +1036,10 @@
- else if (slen >= sizeof(".pc") && !strcmp(s+slen-(sizeof(".pc")-1), ".pm"))
- ftype = "pkgconfig file";
-
-+ /* XXX all files with extension ".php" are PHP modules for now. */
-+ else if (slen >= sizeof(".php") && !strcmp(s+slen-(sizeof(".php")-1), ".php"))
-+ ftype = "PHP script text";
-+
- /* XXX skip all files in /dev/ which are (or should be) %dev dummies. */
- else if (slen >= fc->brlen+sizeof("/dev/") && !strncmp(s+fc->brlen, "/dev/", sizeof("/dev/")-1))
- ftype = "";
---- rpm-4.2/build/rpmfc.h.wiget Tue Apr 1 10:00:23 2003
-+++ rpm-4.2/build/rpmfc.h Tue Apr 1 10:01:22 2003
-@@ -40,6 +40,7 @@
- StringBuf sb_java; /*!< concatenated list of java colored files. */
- StringBuf sb_perl; /*!< concatenated list of perl colored files. */
- StringBuf sb_python;/*!< concatenated list of python colored files. */
-+ StringBuf sb_php; /*!< concatenated list of php colored files. */
-
- };