From 11e0f6ecff7d04ea25090d5b5e05455cd2e86e85 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 3 Dec 2004 10:30:50 +0000 Subject: [PATCH] Require running from command line --- includes/normal/UtfNormalGenerate.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/normal/UtfNormalGenerate.php b/includes/normal/UtfNormalGenerate.php index 65128b706e..efe25de564 100644 --- a/includes/normal/UtfNormalGenerate.php +++ b/includes/normal/UtfNormalGenerate.php @@ -26,6 +26,11 @@ */ /** */ + +if( php_sapi_name() != 'cli' ) { + die( "Run me from the command line please.\n" ); +} + require_once 'UtfNormalUtil.php'; $in = fopen("DerivedNormalizationProps.txt", "rt" ); -- 2.20.1