summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/findglobals5
-rw-r--r--admin/fixperms1
2 files changed, 6 insertions, 0 deletions
diff --git a/admin/findglobals b/admin/findglobals
new file mode 100644
index 0000000..2fcb0e6
--- /dev/null
+++ b/admin/findglobals
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+# Find all PHP modules that are likely to have global variables
+set -e
+
+./admin/findphp | xargs grep '^\$'
diff --git a/admin/fixperms b/admin/fixperms
index 190e8ea..2b710d1 100644
--- a/admin/fixperms
+++ b/admin/fixperms
@@ -4,6 +4,7 @@ admin/checkimport
admin/checkimports
admin/docblocks
admin/findphp
+admin/findglobals
admin/fixperms
admin/makedoc.sh
admin/mathlib