X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fnormal%2FUtfNormalBench.php;h=89de9290389335518a2a8d470cc035f89f9af75a;hb=7f4e344b2404f3eb51d1facdcfaaa9f4499c4d6b;hp=392ba2bfdfe5e91481b4c5c0ee05e6edd6f91351;hpb=27fad304dff43703c40ec93970aaa8760677491b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/normal/UtfNormalBench.php b/includes/normal/UtfNormalBench.php index 392ba2bfdf..89de929038 100644 --- a/includes/normal/UtfNormalBench.php +++ b/includes/normal/UtfNormalBench.php @@ -24,6 +24,10 @@ * @ingroup UtfNormal */ +if( PHP_SAPI != 'cli' ) { + die( "Run me from the command line please.\n" ); +} + if( isset( $_SERVER['argv'] ) && in_array( '--icu', $_SERVER['argv'] ) ) { dl( 'php_utfnormal.so' ); } @@ -34,10 +38,6 @@ require_once 'UtfNormal.php'; define( 'BENCH_CYCLES', 5 ); -if( PHP_SAPI != 'cli' ) { - die( "Run me from the command line please.\n" ); -} - $testfiles = array( 'testdata/washington.txt' => 'English text', 'testdata/berlin.txt' => 'German text',