aboutsummaryrefslogtreecommitdiffstats
path: root/test/center.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-06-05 23:11:34 +0200
committerfilip <filip.komar@gmail.com>2016-06-05 23:11:34 +0200
commit4403b427712411a4986a2a5952cf120837c0ab03 (patch)
tree399f11bec860e5624e1b202b1de6b30840a6e04b /test/center.php
parent5552b0c89cf71b9b847f9c424255255c40c59877 (diff)
downloadwww-4403b427712411a4986a2a5952cf120837c0ab03.tar
www-4403b427712411a4986a2a5952cf120837c0ab03.tar.gz
www-4403b427712411a4986a2a5952cf120837c0ab03.tar.bz2
www-4403b427712411a4986a2a5952cf120837c0ab03.tar.xz
www-4403b427712411a4986a2a5952cf120837c0ab03.zip
add tests for server error level + define leftovers
Diffstat (limited to 'test/center.php')
-rw-r--r--test/center.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/center.php b/test/center.php
index 846ca2b64..e0cd8c8b6 100644
--- a/test/center.php
+++ b/test/center.php
@@ -1,7 +1,16 @@
<?php
+$err_1 = error_reporting();
+$const_1 = get_defined_constants(true);
+if (!isset($const_1['user'])) { $const_1['user'] = array(); }
+$const_1 = $const_1['user'];
+
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../langs.php';
+$err_2 = error_reporting();
+$const_2 = get_defined_constants(true);
+$const_2 = $const_2['user'];
+$const_2['G_APP_ROOT'] = '';
?><!DOCTYPE html>
<html lang="<?php echo $locale; ?>" dir="ltr">
<head>
@@ -20,6 +29,14 @@ require '../langs.php';
<div class="para donate" style="padding-top: 2em;">
<h2><?php _g('Center Alignment page')?></h2>
<p><?php _g('Center Alignment, Center Alignment, Center Alignment...')?></p>
+ <pre><?php
+ echo "default server error_reporting: $err_1";
+ echo ' '. decbin($err_1) . "\n";
+ echo " after ini_set error_reporting: $err_2";
+ echo ' '. decbin($err_2) . "\n\n";
+ print_r($const_1);
+ print_r($const_2);
+ ?></pre>
</div>
</div>
</div>