]> projects.mako.cc - scuttle/blob - includes/utf8/tests/benchconfig.php
remove duplicate shared-tag in xml - the android apps dont like this
[scuttle] / includes / utf8 / tests / benchconfig.php
1 <?php
2 //--------------------------------------------------------------------
3 if ( !defined('UTF8') ) {
4     define('UTF8',realpath(dirname(__FILE__).'/../'));
5 }
6
7 if ( !defined('UTF8DATA') ) {
8     define('UTF8DATA',dirname(__FILE__).'/data');
9 }
10
11
12
13 if ( !isset($_GET['engine']) ) {
14     $_GET['engine'] = 'auto';
15 }
16
17 /**
18 * Testing against a particular "engine"
19 */
20 switch ( $_GET['engine'] ) {
21     case 'mbstring';
22         if ( !function_exists('mb_strtolower') ) {
23             trigger_error("mbstring extension not detected on your system!", E_USER_ERROR );
24         }
25         mb_internal_encoding('UTF-8');
26         require_once UTF8 . '/mbstring/core.php';
27     break;
28     case 'native':
29         require_once UTF8 . '/utils/unicode.php';
30         require_once UTF8 . '/native/core.php';
31     break;
32 }
33
34 require_once UTF8 . '/utf8.php';

Benjamin Mako Hill || Want to submit a patch?